summaryrefslogtreecommitdiff
path: root/source/globals.d.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-05-26 15:37:59 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-05-26 15:37:59 +0800
commitef3fce5ccc1c3350eb73e5c0a12ec1c9137d11fb (patch)
tree9a2030e5f39834e6a20b987f6f38674bcfc8be28 /source/globals.d.ts
parentecb9919400463e5eb2381be95f538a28a98929e1 (diff)
downloadrefined-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.ts6
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' {