Empty array.
This is a type alias for an readonly empty array. Trying to access items on it should give a compile-time error.
const emptyArray: EmptyArray = []; Copy
const emptyArray: EmptyArray = [];
Empty array.
Remarks
This is a type alias for an readonly empty array. Trying to access items on it should give a compile-time error.
Example