Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 513 Bytes

File metadata and controls

43 lines (31 loc) · 513 Bytes

typelab / assertions / IsAny

type IsAny<T> = IfAny<T, true, false>;

Checks if a given type T is an any type.

Type Parameters

Type Parameter Description

T

The type to be checked.

Returns

true if T is an any type, false otherwise.

Example

type Valid = IsAny<any>; // true
type Invalid = IsAny<string>; // false