@tsd/typescript v5.6.3
@tsd/typescript
TypeScript with some extras for type-checking.
This is a drop-in replacement for TypeScript meant for programmatic usage only. It does not expose the binaries like tsc
and tsserver
because it would override the TypeScript binaries of the project. It exposes extra methods on the internal TypeChecker
object.
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.
isTypeIdenticalTo(a: Type, b: Type)
: Check if two types are identical to each other. More info...isTypeSubtypeOf(a: Type, b: Type)
: Check if typea
is a subtype of typeb
. More info...isTypeAssignableTo(a: Type, b: Type)
: Check if typea
is assignable to typeb
.isTypeDerivedFrom(a: Type, b: Type)
: Check if typea
is derived from typeb
. More info...isTypeComparableTo(a: Type, b: Type)
: Check if typea
is comparable to typeb
. More info...areTypesComparable(a: Type, b: Type)
: Check if typea
is comparable to typeb
andb
is comparable to typea
. More info...
Related
- tsd - Check TypeScript type definitions
1 month ago
2 months ago
4 months ago
5 months ago
5 months ago
7 months ago
8 months ago
8 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago