Skip to content

Commit

Permalink
fix(lib/api/global.d.ts): update 'await-to-js' types
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
nicholaschiang committed Mar 20, 2021
1 parent ddf6f13 commit 5e33b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ declare module 'await-to-js' {
export default function to<T, U = Error>(
promise: Readonly<Promise<T>>,
errorExt?: object
): Promise<[U | null, T | undefined]>;
): Promise<[U, undefined] | [null, T]>;
}

0 comments on commit 5e33b0f

Please sign in to comment.