π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?
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?
Was this helpful?