Files
DefinitelyTyped/types/raf-schd/index.d.ts
Adam Bergman 99bff85ef4 Add types for raf-schd (#37582)
* [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
2019-08-19 15:43:36 -07:00

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;