typelab / assertions / IsTuple
type IsTuple<T> = _IsTrue<IfTuple<T, true, false>>;Checks if a given type T is a Tuple type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is a Tuple type, false otherwise.
type Valid = IsTuple<[string]>; // true
type Invalid = IsTuple<string[]>; // false