summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts')
-rw-r--r--alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts b/alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts
new file mode 100644
index 0000000..22e8a34
--- /dev/null
+++ b/alarm/node_modules/graphql/subscription/mapAsyncIterator.d.ts
@@ -0,0 +1,11 @@
+import { PromiseOrValue } from '../jsutils/PromiseOrValue';
+
+/**
+ * Given an AsyncIterable and a callback function, return an AsyncIterator
+ * which produces values mapped via calling the callback function.
+ */
+export default function mapAsyncIterator<T, U>(
+ iterable: AsyncIterable<T>,
+ callback: (arg: T) => PromiseOrValue<U>,
+ rejectCallback?: (arg: any) => PromiseOrValue<U>,
+): any; // TS_SPECIFIC: AsyncGenerator requires typescript@3.6