Awesome
@tsd/typescript
TypeScript with some extras for type-checking.
Install
npm install --save-dev @tsd/typescript
Usage
This package is just TypeScript with some private methods exposed that tsd needs for enhanced type checking.
isTypeAssignableTo(a: Type, b: Type)
: Check if typea
is assignable to typeb
.isTypeIdenticalTo(a: Type, b: Type)
: Check if two types are identical to each other. More info...
Related
- tsd - Check TypeScript type definitions