Type alias IsAny<T>

IsAny<T>: 0 extends 1 & T
    ? true
    : false

Check if type is any.

Type Parameters

  • T

Example

const isAny: IsAny<any> = true