There was an error while loading. Please reload this page.
ReadonlyArray
1 parent 00e3dc6 commit b69be67Copy full SHA for b69be67
array-flatten.d.ts
@@ -1,7 +1,7 @@
1
declare function flatten <T> (array: flatten.NestedArray<T>): T[];
2
3
declare namespace flatten {
4
- export interface NestedArray <T> extends Array<T | NestedArray<T>> {}
+ export interface NestedArray <T> extends ReadonlyArray<T | NestedArray<T>> {}
5
6
export interface NestedList <T> {
7
[index: number]: T | NestedList<T>;
0 commit comments