Created
October 15, 2022 08:30
-
-
Save ssyrota/2f0d8b1f2cc87888ec29ca83db3389c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type FutureResE<T = never, U = Error> = [T] extends [never] | |
? Promise<U | null> | |
: Promise<[U, null] | [null, T]>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment