Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 612 Bytes

File metadata and controls

43 lines (31 loc) · 612 Bytes

typelab / assertions / IsArrayWritable

type IsArrayWritable<T> = _IsTrue<IfArrayWritable<T, true, false>>;

Checks if a given type T is not readonly Array type.

Type Parameters

Type Parameter Description

T

The type to be checked.

Returns

true if T is not readonly Array type, false otherwise.

Example

type Valid = IsArrayWritable<string[]>; // true
type Invalid = IsArrayWritable<readonly string[]>; // false