Skip to content

Latest commit

 

History

History

Unpromisify

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Unpromisify

Extracts the type T from a Promise.

Example

type Fn = (a: number, b: string) => Promise<boolean>
type Unpromisified = Unpromisify<Fn> // (a: number, b: string) => boolean