mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
* [raf-schd] Add types for raf-schd * Remove note from header * Update Schedule interface Co-Authored-By: Pranav Senthilnathan <pranav.senthilnathan@live.com> * Enable esModuleInterop * Skip esModuleInterop
15 lines
464 B
TypeScript
15 lines
464 B
TypeScript
// Type definitions for raf-schd 4.0
|
|
// Project: https://github.com/alexreardon/raf-schd
|
|
// Definitions by: Adam Bergman <https://github.com/adambrgmn>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
interface Schedule<T extends (...args: any[]) => void> {
|
|
(...args: Parameters<T>): void;
|
|
cancel(): void;
|
|
}
|
|
|
|
declare function rafSchd<T extends (...args: any[]) => void>(fn: T): Schedule<T>;
|
|
|
|
export = rafSchd;
|