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
Comment on page
assert
import
{
assert
}
from
"tsafe/assert"
;
declare
const
x
:
number
|
string
;
assert
(
typeof
x
===
"string"
);