TypeScript

Typescript Never Type

The Typescript Never type represents the type that never happens or the values that never occur. The following are such places where we use the never type. The return type of function that never returns (infinite loop or always throws an error). Variables when narrowed by a Type guard that can never be true

Typescript Never Type Read More »

TypeScript Any Type

Any type is the base type for all other types in TypeScript. Any type can represent any JavaScript value with no constraints. The TypeScript compiler does not perform type checking on the Any type. The Any variable can hold anything like primitives, objects, arrays, functions, errors, symbols, etc.

TypeScript Any Type Read More »

Typescript Boolean

The boolean is a primitive type in Typescript. It represents a simple true/false value. They are implemented as numerical values with a single binary digit (i.e., 0 & 1). The Boolean is an object wrapper for a boolean value. Also, let us find the difference between Boolean vs boolean.

Typescript Boolean Read More »

Scroll to Top