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"]
}arrayenforces use ofT[]for all typesT.genericenforces use ofArray<T>for all typesT.array-simpleenforces use ofT[]ifTis a simple type.
- TSLint: array-type