mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Enforce array type styles in TypeScript (#5765)
This change enforces how we type arrays, e.g. choosing between: * `string[]` * `Array<string>` I've gone for the `array-simple` option [1] which enforces that: * primitive types and type references use `X[]` * complex types use `Array<X>` For example, we'd type an array of strings as `string[]`, but an array of a union type as `Array<SomeUnionType>`. [1]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md
This commit is contained in:
@@ -48,7 +48,7 @@ interface SerializedAXNode {
|
||||
haspopup?: string;
|
||||
invalid?: string;
|
||||
orientation?: string;
|
||||
children?: Array<SerializedAXNode>;
|
||||
children?: SerializedAXNode[];
|
||||
}
|
||||
|
||||
export class Accessibility {
|
||||
|
||||
Reference in New Issue
Block a user