mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix tests
This commit is contained in:
parent
1f023ca641
commit
4ff739328c
2
types/raf/index.d.ts
vendored
2
types/raf/index.d.ts
vendored
@ -7,6 +7,6 @@ declare const raf: {
|
||||
(callback: (timestamp: number) => void): number;
|
||||
cancel: (handle: number) => void;
|
||||
polyfill: (globalObject?: any) => void;
|
||||
}
|
||||
};
|
||||
|
||||
export = raf;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import raf from "raf";
|
||||
import * as raf from "raf";
|
||||
|
||||
const handle = raf((timestamp) => {
|
||||
timestamp; // $ExpectType number
|
||||
|
||||
Loading…
Reference in New Issue
Block a user