typelab / assertions / IsTupleWritable
type IsTupleWritable<T> = _IsTrue<IfTupleWritable<T, true, false>>;Checks if a given type T is not readonly Tuple type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is not readonly Tuple type, false otherwise.
type Valid = IsTupleWritable<[string]>; // true
type Invalid1 = IsTupleWritable<readonly [string]>; // false
type Invalid2 = IsTupleWritable<string[]>; // false