Skip to content

Commit d297516

Browse files
fix(lib/api/global.d.ts): update 'await-to-js' types
Adds the changes in scopsy/await-to-js#46 to our local type definitions (which exist because I'm waiting on scopsy/await-to-js#47).
1 parent 7e71a0c commit d297516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/global.d.ts

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

0 commit comments

Comments
 (0)