Check if A
can assign to B
.
If A
is a union,
the check is distributive.
Meaning the result can be boolean
,
meaning both true
and false
will pass.
If you want to avoid the distributivity,
use testType.strictCanAssign()
instead.
expected
as A
for type inspection.
Check if type T
is boolean
and boolean literals.
expected
as T
for type inspection.
A quick way to inspect a type.
The handler receives a InspectedType
object.
It contains value
which is typed to T
,
and many other properties to inspect the behavior of T
.
The handler is not being call, it is use to hold the type in value for inspection.
🧪 testing 🦴 utilities
Check if type T
is exactly boolean
.
expected
as T
for type inspection.
Check if type T
is exactly undefined
.
expected
as T
for type inspection.
Check if type
T
is exactlyany
.