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