summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-01-31 17:52:27 +0900
committerGitHub <noreply@github.com>2019-01-31 17:52:27 +0900
commitbbcdf1bb8a305bfd8d74150024c33cdaabe950fc (patch)
tree33a25ebad060d88432a7d053d2023edc109ef82e /src/@types
parentCreate type definition for 'webfinger.js' (#4054) (diff)
downloadsharkey-bbcdf1bb8a305bfd8d74150024c33cdaabe950fc.tar.gz
sharkey-bbcdf1bb8a305bfd8d74150024c33cdaabe950fc.tar.bz2
sharkey-bbcdf1bb8a305bfd8d74150024c33cdaabe950fc.zip
Create type definition for 'promise-any' (#4055)
Diffstat (limited to 'src/@types')
-rw-r--r--src/@types/promise-any.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/@types/promise-any.d.ts b/src/@types/promise-any.d.ts
new file mode 100644
index 0000000000..97060b84bd
--- /dev/null
+++ b/src/@types/promise-any.d.ts
@@ -0,0 +1,7 @@
+declare module 'promise-any' {
+ function promiseAny<T>(iterable: Iterable<T | PromiseLike<T>>): Promise<T>;
+
+ namespace promiseAny {} // Hack
+
+ export = promiseAny;
+}