boolean

boolean is a primitive data type in TypeScript that represents a boolean value i.e. either true or false. Given below is an example of a boolean variable declaration:

let isTrue: boolean = true;
let isFalse: boolean = false;

Learn more from the following links: