Installation
npm install --save @types/tween-functions
Summary
This package contains type definitions for tween-functions (https://github.com/chenglou/tween-functions).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tween-functions.
declare namespace tweenFunctions {
type TweenFunction = (
time: number,
start: number,
end: number,
duration: number,
) => number;
type TweenFunctionBack = (
time: number,
start: number,
end: number,
duration: number,
overshoot?: number,
) => number;
interface TweenFunctions {
linear: TweenFunction;
easeInQuad: TweenFunction;
easeOutQuad: TweenFunction;
easeInOutQuad: TweenFunction;
easeInCubic: TweenFunction;
easeOutCubic: TweenFunction;
easeInOutCubic: TweenFunction;
easeInQuart: TweenFunction;
easeOutQuart: TweenFunction;
easeInOutQuart: TweenFunction;
easeInQuint: TweenFunction;
easeOutQuint: TweenFunction;
easeInOutQuint: TweenFunction;
easeInSine: TweenFunction;
easeOutSine: TweenFunction;
easeInOutSine: TweenFunction;
easeInExpo: TweenFunction;
easeOutExpo: TweenFunction;
easeInOutExpo: TweenFunction;
easeInCirc: TweenFunction;
easeOutCirc: TweenFunction;
easeInOutCirc: TweenFunction;
easeInElastic: TweenFunction;
easeOutElastic: TweenFunction;
easeInOutElastic: TweenFunction;
easeInBack: TweenFunctionBack;
easeOutBack: TweenFunctionBack;
easeInOutBack: TweenFunctionBack;
easeInBounce: TweenFunction;
easeOutBounce: TweenFunction;
easeInOutBounce: TweenFunction;
}
}
declare const tweenFunctions: tweenFunctions.TweenFunctions;
export = tweenFunctions;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Ivan Ergunov.