Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created March 23, 2021 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eamonnboyle/f580ef6fc6cd48ce0e1eec29d202e92e to your computer and use it in GitHub Desktop.
Save eamonnboyle/f580ef6fc6cd48ce0e1eec29d202e92e to your computer and use it in GitHub Desktop.
Testing Unwrap Promises
// []
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