Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc-cloned / node_modules / @protobufjs / aspromise / index.d.ts
diff --git a/legacy-libs/grpc-cloned/node_modules/@protobufjs/aspromise/index.d.ts b/legacy-libs/grpc-cloned/node_modules/@protobufjs/aspromise/index.d.ts
new file mode 100644 (file)
index 0000000..afbd89a
--- /dev/null
@@ -0,0 +1,13 @@
+export = asPromise;\r
+\r
+type asPromiseCallback = (error: Error | null, ...params: any[]) => {};\r
+\r
+/**\r
+ * Returns a promise from a node-style callback function.\r
+ * @memberof util\r
+ * @param {asPromiseCallback} fn Function to call\r
+ * @param {*} ctx Function context\r
+ * @param {...*} params Function arguments\r
+ * @returns {Promise<*>} Promisified function\r
+ */\r
+declare function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>;\r