Category: TypeScript

40 questions in TypeScript.

What are branded types in TypeScript

· TypeScript

Distinguish structurally identical types using branded types to prevent accidental mixing of IDs, units, and currencies.

How to create recursive types

· TypeScript

Define self-referential type aliases in TypeScript to model trees, linked lists, and nested JSON structures.

How to use template literal types

· TypeScript

Build precise string types using template literal types that combine literal strings and type placeholders.

What are utility types in TypeScript

· TypeScript

Explore built-in utility types like Partial, Required, Pick, Omit, Record, and ReturnType for common transformations.