This site uses tracking technologies. You may opt in or opt out of the use of these technologies.

Typescript Type Annotations

Learn how to specify types for variables, function parameters, and return values.

1/1

Typescript Primitive Types

get familiar with basic types like string, number, boolean, null, undefined, and any.

1/2

Typescript Type Inference

In TypeScript, type inference is the process by which TypeScript automatically determines the type of a variable, parameter, or return value without explicit type annotations.

1/3

Typescript Basic Configurations: Understand tsconfig.json basics.

Typescript Basic Configurations: Set up a simple TypeScript project and understand tsconfig.json basics.

1/4

Typescript Union & Intersection Types

In TypeScript, Union and Intersection types are powerful tools for creating flexible and precise type definitions.

2/1

Typescript Interfaces and Type Aliases

In TypeScript, interfaces and type aliases are two ways to define the shape of an object, but they have some differences and specific use cases.

2/2

Typescript Optional Properties in interfaces

In TypeScript, optional properties in interfaces allow you to define properties that are not strictly required when implementing the interface. Optional properties are beneficial for flexibility, enabling you to create objects with only some properties defined while still complying with the interface.

2/3

Typescript Readonly and Constant Types: Ensure immutability for certain types

In TypeScript, immutability can be enforced for certain types by using readonly properties and const declarations.

2/4

Typescript Function Types and Overloading: Define types for functions, including parameter and return types

In TypeScript, you can define types for functions by specifying the types of their parameters and their return types

3/1

Typescript Generic Types: Master generics for writing reusable components

Mastering TypeScript generics is an essential skill for creating reusable and type-safe components, especially in a frontend development context like React.

3/2

Typescript Generic Constraints: Apply constraints to generics for more precise type definitions.

In TypeScript, generic constraints allow you to enforce certain rules on generic types, making your type definitions more precise and your code safer.

3/3

Mapped Types: Transform types using the mapped type feature.

In TypeScript, mapped types allow you to create new types by transforming properties in an existing type.

4/1

Typescript Conditional Types: Use extends, infer, and keyof to create conditional logic in types.

TypeScript's Conditional Types provide a way to perform type-level computations using a ternary-like syntax.

4/2

Utility Types: Learn TypeScript’s built-in utility types like Partial, Pick, Omit, and Record

TypeScript provides a set of utility types that help manipulate types in various ways, making it easier to write flexible and reusable code.

4/3