npm.io
4.0.3 • Published 2 years ago

@types/raf-schd

Licence
MIT
Version
4.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Adam Bergman.