Installation
npm install --save @types/scroll
Summary
This package contains type definitions for scroll (https://github.com/michaelrhodes/scroll).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scroll.
type ScrollError = Error | null;
interface ScrollOptions {
ease?: ((time: number) => number) | undefined;
duration?: number | undefined;
}
interface ScrollCallback {
(error: ScrollError, value: number): void;
}
interface Cancel {
(): void;
}
interface Scroll {
(el: HTMLElement, to: number, opts?: ScrollOptions | ScrollCallback, cb?: ScrollCallback): Cancel;
}
declare const scroll: {
left: Scroll;
top: Scroll;
};
export = scroll;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Roman Charugin.