Skip to content

Latest commit

 

History

History

Promisify

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Promisify

Transforms a function type T that returns a value into a function type that returns a Promise of that value.

Example

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