mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
17 lines
571 B
TypeScript
17 lines
571 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
|
|
|
|
declare type TransitionFunc = (t: number, b: number, c: number, d: number) => number;
|
|
declare interface JumpOptions {
|
|
duration?: number;
|
|
offset?: number;
|
|
callback?: () => void;
|
|
easing?: TransitionFunc;
|
|
a11y?: boolean;
|
|
}
|
|
declare type Jump = (target: string | Element | number, opts?: JumpOptions) => void;
|
|
declare const jump: Jump;
|
|
export = jump;
|