We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e71a0c commit d297516Copy full SHA for d297516
lib/api/global.d.ts
@@ -2,5 +2,5 @@ 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]>;
+ ): Promise<[U, undefined] | [null, T]>;
6
}
0 commit comments