Type alias Not<T>

Not<T>: T extends true
    ? false
    : true

只能对 true 和 false 进行否定

Type Parameters

  • T extends boolean

Example

Not<true> // false
Not<false> // true

Generated using TypeDoc