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
Parameters
Same as
the builtin-type
but works also with nullable function type. Analogous to
ReturnType
.
import
type
{
Parameters
}
from
"tsafe/Parameters"
;
declare
const
myFunction
:
(
a
:
string
)
=>
void
|
null
;
type
args
=
Parameters
<
typeof
myFunction
>
;
// ^ args is [a: string]
Previous
ReturnType
Next
Param0
Last modified
4mo ago