Created
March 23, 2021 19:38
-
-
Save eamonnboyle/f580ef6fc6cd48ce0e1eec29d202e92e to your computer and use it in GitHub Desktop.
Testing Unwrap Promises
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
// [] | |
type TestA = UnwrapPromises<[]>; | |
// [number] | |
type TestB = UnwrapPromises<[Promise<number>]>; | |
// [number, string, Date, boolean] | |
type TestC = UnwrapPromises<[Promise<number>, Promise<string>, Date, boolean]>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment