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 A can fully assign to B.
This checks all branches in an union A are assignable to B.
expected as A for type inspection.
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
Tis exactlyany.