Skip to content

Commit d556f09

Browse files
fix(api/global.d.ts): add 'await-to-js' type defs
Temporary fix until scopsy/await-to-js#47 is merged.
1 parent b559194 commit d556f09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/api/global.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module 'await-to-js' {
2+
export default function to<T, U = Error>(
3+
promise: Readonly<Promise<T>>,
4+
errorExt?: object
5+
): Promise<[U | null, T | undefined]>;
6+
}

0 commit comments

Comments
 (0)