Explore Library
Code QuizBeginner

Boolean Literal Type

A boolean literal type restricts a variable to a single true or false value.

Codetypescript
type AlwaysTrue = true;

let flag: AlwaysTrue = false;
console.log(flag);

What is the bug in this boolean literal type assignment?