@types/raf-schd
Version:
TypeScript definitions for raf-schd
25 lines (17 loc) • 781 B
Markdown
# Installation
> `npm install --save @types/raf-schd`
# Summary
This package contains type definitions for raf-schd (https://github.com/alexreardon/raf-schd).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf-schd.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf-schd/index.d.ts)
````ts
type ScheduledFn<T extends (...args: any[]) => void> = T & { cancel(): void };
declare function rafSchd<T extends (...args: any[]) => void>(fn: T): ScheduledFn<T>;
export = rafSchd;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Adam Bergman](https://github.com/adambrgmn).