Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 208 Bytes

readme.md

File metadata and controls

11 lines (7 loc) · 208 Bytes

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