tsafe
GitHub
Search
⌃
K
Links
👋
What is tsafe?
⚙
How to import
UnionToIntersection
assert
id
is
Equals
symToStr
ReturnType
Parameters
Param0
objectKeys
exclude
typeGuard
capitalize/uncapitalize
Extends
Not
MethodNames
isPromiseLike
flip
objectEntries
objectFromEntries
🚧
withDefaults
📉
UnpackPromise
Powered By
GitBook
📉
UnpackPromise
Deprecated. Extract the packed type of a Promise
In TypeScript 4.5 have been introduced the
Awaited
type that does just what UnpackPromise does.
declare
const
prStr
:
Promise
<
string
>
;
//str is of type string
declare
const
str
:
UnpackPromise
<
typeof
pr
>
;
Previous
withDefaults
Last modified
8mo ago