diff options
author | 2019-05-26 15:37:59 +0800 | |
---|---|---|
committer | 2019-05-26 15:37:59 +0800 | |
commit | ef3fce5ccc1c3350eb73e5c0a12ec1c9137d11fb (patch) | |
tree | 9a2030e5f39834e6a20b987f6f38674bcfc8be28 /source/globals.d.ts | |
parent | ecb9919400463e5eb2381be95f538a28a98929e1 (diff) | |
download | refined-github-ef3fce5ccc1c3350eb73e5c0a12ec1c9137d11fb.tar.gz refined-github-ef3fce5ccc1c3350eb73e5c0a12ec1c9137d11fb.tar.zst refined-github-ef3fce5ccc1c3350eb73e5c0a12ec1c9137d11fb.zip |
Replace `p-memoize` wrapper with `mem`19.5.26.1924
Diffstat (limited to 'source/globals.d.ts')
-rw-r--r-- | source/globals.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/globals.d.ts b/source/globals.d.ts index a1b757e2..8520f368 100644 --- a/source/globals.d.ts +++ b/source/globals.d.ts @@ -1,5 +1,11 @@ type AnyObject = Record<string, any>; +// TODO: Drop after https://github.com/sindresorhus/p-memoize/issues/9 +declare module 'mem' { + function mem<T = VoidFunction>(fn: T): T; + export = mem; +} + // TODO: Drop when Firefox adds RegEx lookbehind support // https://github.com/sindresorhus/refined-github/pull/1936#discussion_r276515991 declare module 'linkify-urls' { |