Assert that a boolean type resolves to true.
true
Boolean type that must be true
Produces a compiler error if the provided type is not exactly true.
type A = AssertTrue< true >; // ✓type B = AssertTrue< false >; // ✗ TS error Copy
type A = AssertTrue< true >; // ✓type B = AssertTrue< false >; // ✗ TS error
Assert that a boolean type resolves to
true.