mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
fix tests
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user