πŸ“‰UnpackPromise

Deprecated. Extract the packed type of a Promise

declare const prStr: Promise<string>;

//str is of type string
declare const str: UnpackPromise<typeof pr>;

Last updated

Was this helpful?