DefinitelyTyped/types/jump.js/index.d.ts
James Charlesworth 23332fa2c8 [jump.js] Add option for passing duration as a function (#40082)
* Add option for passing duration as a function, it has been supported in jump.js just missing from typings https://github.com/callmecavs/jump.js/blob/master/src/jump.js#L133

* jump.js remove myself from the defitions by (also kick off another build)
2019-11-05 11:15:34 -08:00

20 lines
615 B
TypeScript

// Type definitions for jump.js 1.0
// Project: https://github.com/callmecavs/jump.js
// Definitions by: rhysd <https://rhysd.github.io>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = jump;
declare function jump(target: string | Element | number, opts?: jump.Options): void;
declare namespace jump {
type TransitionFunc = (t: number, b: number, c: number, d: number) => number;
interface Options {
duration?: number | ((distance: number) => number);
offset?: number;
callback?(): void;
easing?: TransitionFunc;
a11y?: boolean;
}
}