TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

10 articles 108k View on GitHub ↗
10 articles
How to Implicitly Create a TypeScript Tuple: 3 Methods Explained

Discover 3 ways to implicitly create a TypeScript tuple. Learn how TypeScript converts array literals, especially in const contexts or with `as const`, into powerful tuple types.

how-to-guide
Feb 13, 2026
How to Define a Generic TypeScript Class Constructor Type

Learn to define a generic TypeScript class constructor type using callable signatures. Understand how to create constructors for generic types and support abstract classes effectively.

how-to-guide
Feb 13, 2026
TypeScript Union Types vs Intersection Types: How the Compiler Handles Type Composition

Understand TypeScript union and intersection types. Learn how they combine types and how the compiler handles differences to improve your code.

deep-dive
Feb 13, 2026
How to Filter an Array of Different Types in TypeScript and Specify the Expected Type

Learn how to use TypeScript filter with type predicates to safely filter mixed-type arrays. Narrow your array's return type from T[] to S[] and let the compiler track specific subtypes.

how-to-guide
Feb 12, 2026
How to Create and Use enum in TypeScript: Complete Guide with Source Code Analysis

Learn how to create and use enums in TypeScript with our complete guide. Explore enums and const enums with source code analysis for efficient development.

tutorial
Feb 12, 2026
How to Use a TypeScript Map: ES6 Collections with Static Typing

Master TypeScript Maps for type-safe ES6 collections. Learn to leverage generic parameters K and V effectively for robust key-value storage in your applications.

tutorial
Feb 12, 2026
How to Get a Variable's Type in TypeScript Using `typeof`

Discover how to get a variable type in TypeScript using the typeof operator. Learn to capture static types for efficient code reuse and robust development.

how-to-guide
Feb 12, 2026
How to Define a TypeScript Function Type Callback That Accepts Any Signature Without Using `any`

Define flexible TypeScript function types that accept any signature without using any. Learn to create generic callback types for enhanced code safety and reusability. Explore practical examples.

how-to-guide
Feb 11, 2026
How to Exit Early from a forEach Loop in TypeScript: return Behavior Explained

Understand how return statements behave in TypeScript forEach loops. Learn why return only exits the current iteration, not the whole loop, and discover the actual return value.

deep-dive
Feb 11, 2026
TypeScript Record Type: How to Build Dictionary Types with Mapped Types

Learn how to build dictionary types in TypeScript using the built-in Record utility. Master homogenous dictionary structures for precise key value typing.

deep-dive
Feb 11, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s https://instagit.com/install.md

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client