class Foo<T = Array<Array<Bar>>> extends Bar<T, Array<T>>
implements Baz<Array<T>> {
private s: Array<T>;
constructor(p: Array<T>) {
return new Array();
}
}
This rule aims to standardise usage of array.
Default config:
{
"array-type": ["error", "array"]
}
array
enforces use ofT[]
for all typesT
.generic
enforces use ofArray<T>
for all typesT
.array-simple
enforces use ofT[]
ifT
is a simple type.
- TSLint: array-type