1. @tsd/typescript
TypeScript with some extras for type-checking.
@tsd/typescript
Package: @tsd/typescript
Created by: tsdjs
Last modified: Wed, 10 Apr 2024 18:16:51 GMT
Version: 5.4.5
License: MIT
Downloads: 555,647
Repository: https://github.com/tsdjs/typescript

Install

npm install @tsd/typescript
yarn add @tsd/typescript

@tsd/typescript CI

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 type a is a subtype of type b. More info...
  • isTypeAssignableTo(a: Type, b: Type): Check if type a is assignable to type b.
  • isTypeDerivedFrom(a: Type, b: Type): Check if type a is derived from type b. More info...
  • isTypeComparableTo(a: Type, b: Type): Check if type a is comparable to type b. More info...
  • areTypesComparable(a: Type, b: Type): Check if type a is comparable to type b and b is comparable to type a. More info...
  • tsd - Check TypeScript type definitions

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code