diff --git a/types/raf/index.d.ts b/types/raf/index.d.ts index e954bc5540..d54b1c6e6c 100644 --- a/types/raf/index.d.ts +++ b/types/raf/index.d.ts @@ -7,6 +7,6 @@ declare const raf: { (callback: (timestamp: number) => void): number; cancel: (handle: number) => void; polyfill: (globalObject?: any) => void; -} +}; export = raf; diff --git a/types/raf/raf-tests.ts b/types/raf/raf-tests.ts index d57019913d..c3da3cbd01 100644 --- a/types/raf/raf-tests.ts +++ b/types/raf/raf-tests.ts @@ -1,4 +1,4 @@ -import raf from "raf"; +import * as raf from "raf"; const handle = raf((timestamp) => { timestamp; // $ExpectType number