We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tryit
1 parent 9ed7ee7 commit 268bdecCopy full SHA for 268bdec
src/types/tryit.ts
@@ -13,7 +13,7 @@ import type Fn from './fn'
13
*/
14
type Tryit<T extends Fn, E extends Error = Error> = Fn<
15
Parameters<T>,
16
- Promise<[E, null] | [null, Awaited<ReturnType<T>>]>
+ Promise<[err: E, result: null] | [err: null, result: Awaited<ReturnType<T>>]>
17
>
18
19
export type { Tryit as default }
0 commit comments