-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.d.ts
More file actions
40 lines (36 loc) · 1.3 KB
/
index.d.ts
File metadata and controls
40 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Definition types
*/
declare module 'react-number-easing' {
import * as React from 'react'
// Referenced from @types/eases
type TEaseTypes = 'backInOut' | 'backIn' | 'backOut' | 'bounceInOut' | 'bounceIn' | 'bounceOut' | 'circInOut' | 'circIn' | 'circOut' | 'cubicInOut' | 'cubicIn' | 'cubicOut' | 'elasticInOut' | 'elasticIn' | 'elasticOut' | 'expoInOut' | 'expoIn' | 'expoOut' | 'linear' | 'quadInOut' | 'quadIn' | 'quadOut' | 'quartInOut' | 'quartIn' | 'quartOut' | 'quintInOut' | 'quintIn' | 'quintOut' | 'sineInOut' | 'sineIn' | 'sineOut'
export interface NumberEasingProps {
/**
* The value that you want to display at the end of the animation. This is the target value.
*/
value: number,
/**
* How fast do you want to finish the animation?
* @default 500
*/
speed?: number,
/**
* The easing equation for the animation.
* @default 'quintInOut'
*/
ease?: TEaseTypes,
/**
* Decimals number
* @default 0
*/
decimals?: number,
/**
* Function that replaces the default `Number(value).toString(decimals)` render function.
* @default undefined
*/
customFunctionRender?: (value: number, decimals: number) => string,
}
const NumberEasing: React.FC<NumberEasingProps>
export default NumberEasing
}