Typescript Concepts for Practical Learning

30 Concepts Explained

TB
Beginner

TypeScript Basics

Introduction to TypeScript, its purpose, and how it extends JavaScript with static typing.

Mark as CompletedRead
TA
Beginner

Type Annotations

Explicitly defining variable and function types to ensure type safety.

Mark as CompletedRead
TI
Beginner

Type Inference

TypeScript automatically infers types based on assigned values.

Mark as CompletedRead
PT
Beginner

Primitive Types

Basic types such as string, number, boolean, null, undefined, and symbol.

Mark as CompletedRead
OT
Beginner

Object Types

Defining structured data with properties and their types.

Mark as CompletedRead
AT
Beginner

Array Types

Defining arrays with specific element types.

Mark as CompletedRead
TT
Intermediate

Tuple Types

Fixed-length arrays with defined types for each position.

Mark as CompletedRead
ET
Intermediate

Enum Types

Defining a set of named constants for readability and maintainability.

Mark as CompletedRead
UT
Intermediate

Union Types

Allowing a value to be one of several types.

Mark as CompletedRead
IT
Intermediate

Intersection Types

Combining multiple types into one.

Mark as CompletedRead
LT
Intermediate

Literal Types

Restricting values to specific literals such as 'yes' or 'no'.

Mark as CompletedRead
TA
Intermediate

Type Aliases

Creating custom names for complex types.

Mark as CompletedRead
TI
Intermediate

TypeScript Interfaces

Defining contracts for object shapes.

Mark as CompletedRead
TC
Intermediate

TypeScript Classes

Object-oriented programming with TypeScript classes.

Mark as CompletedRead
AM
Intermediate

Access Modifiers

Controlling visibility of class members using public, private, and protected.

Mark as CompletedRead
RP
Intermediate

Readonly Properties

Properties that cannot be reassigned after initialization.

Mark as CompletedRead
OP
Intermediate

Optional Properties

Properties that may or may not exist on an object.

Mark as CompletedRead
TG
Advanced

TypeScript Generics

Reusable components with type parameters.

Mark as CompletedRead
GC
Advanced

Generic Constraints

Restricting generic types to specific shapes or values.

Mark as CompletedRead
UT
Advanced

Utility Types

Built-in helpers like Partial, Pick, Omit, and Record.

Mark as CompletedRead
MT
Advanced

Mapped Types

Transforming types by iterating over keys.

Mark as CompletedRead
CT
Advanced

Conditional Types

Types that depend on conditions using extends.

Mark as CompletedRead
KO
Intermediate

Keyof Operator

Extracting keys of a type as a union.

Mark as CompletedRead
TO
Intermediate

Typeof Operator

Using typeof to capture the type of a variable.

Mark as CompletedRead
IAT
Intermediate

Indexed Access Types

Accessing the type of a property using square brackets.

Mark as CompletedRead
FT
Intermediate

Function Types

Defining types for functions including parameters and return values.

Mark as CompletedRead
OF
Advanced

Overloaded Functions

Functions with multiple type signatures.

Mark as CompletedRead
IVTA
Intermediate

Interfaces vs Type Aliases

Comparison between interfaces and type aliases in TypeScript, highlighting differences in flexibility and features.

Mark as CompletedRead
ATC
Advanced

Advanced tsconfig Configuration

Exploring advanced compiler options in tsconfig.json such as strict mode, module resolution, and path mapping.

Mark as CompletedRead
DM
Advanced

Declaration Merging

Combining multiple declarations with the same name into a single definition, useful for extending libraries.

Mark as CompletedRead