# @types/mina

> TypeScript definitions for mina

Latest version **0.4.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mina
pnpm add @types/mina
yarn add @types/mina
bun add @types/mina
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.5 |
| Published | 2023-11-07 |
| First published | 2017-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/mina
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mina
- npm.io page: https://npm.io/package/@types/mina

## Recent versions

- 0.4.5 (latest) — 2023-11-07
- 0.4.2 (ts3.2) — 2020-09-17
- 0.4.1 (ts2.0) — 2019-02-13
- 0.4.4 — 2023-10-18
- 0.4.3 — 2023-09-27
- 0.4.0 — 2017-07-12

## README

# Installation
> `npm install --save @types/mina`

# Summary
This package contains type definitions for mina (https://github.com/adobe-webplatform/Snap.svg).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mina.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mina/index.d.ts)
````ts
declare function mina(
    a: number,
    A: number,
    b: number,
    B: number,
    get: () => number,
    set: (time: number) => void,
    easing?: (num: number) => number,
): mina.AnimationDescriptor;
declare namespace mina {
    interface MinaAnimation {
        id: string;
        duration(): number;
        easing(): number;
        speed(): number;
        status(): number;
        stop(): void;
    }

    interface AnimationDescriptor {
        id: string;
        start: number;
        end: number;
        b: number;
        s: number;
        dur: number;
        spd: number;
        get(): number;
        set(slave: number): number;
        easing(input: number): number;
        status(): number;
        status(newStatus: number): void;
        speed(): number;
        speed(newSpeed: number): void;
        duration(): number;
        duration(newDuration: number): void;
        stop(): void;
        pause(): void;
        resume(): void;
        update(): void;
    }

    function backin(n: number): number;
    function backout(n: number): number;
    function bounce(n: number): number;
    function easein(n: number): number;
    function easeinout(n: number): number;
    function easeout(n: number): number;
    function elastic(n: number): number;
    function getById(id: string): AnimationDescriptor;
    function linear(n: number): number;
    function time(): number;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Lars Klein](https://github.com/lhk), [Mattanja Kern](https://github.com/mattanja), and [Andrey Kurdyumov](https://github.com/kant2002).

---
_Source: https://npm.io/package/@types/mina · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
