From 5e33b0fc9d35365317d8e52e5481546b82add5f7 Mon Sep 17 00:00:00 2001 From: Nicholas Chiang Date: Sat, 20 Mar 2021 14:18:04 -0700 Subject: [PATCH] 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). --- lib/api/global.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/global.d.ts b/lib/api/global.d.ts index 2d542a88..05aefe2f 100644 --- a/lib/api/global.d.ts +++ b/lib/api/global.d.ts @@ -2,5 +2,5 @@ declare module 'await-to-js' { export default function to( promise: Readonly>, errorExt?: object - ): Promise<[U | null, T | undefined]>; + ): Promise<[U, undefined] | [null, T]>; }