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