lint:Use Array<> for non-simple array types

This commit is contained in:
Nathan Shively-Sanders
2017-11-09 14:27:41 -08:00
parent f6d9e5e830
commit 1667c4c45b
2 changed files with 6 additions and 6 deletions

View File

@@ -1036,7 +1036,7 @@ declare namespace Highcharts {
* Datetime axis only. An array determining what time intervals the ticks are allowed to fall on. Each array item is
* an array where the first value is the time unit and the second value another array of allowed multiples.
*/
units?: [string, number[]][];
units?: Array<[string, number[]]>;
/**
* Whether axis, including axis title, line, ticks and labels, should be visible.
* @default true
@@ -6575,7 +6575,7 @@ declare namespace Highcharts {
* a subset is supported: absolute moveTo (M), absolute lineTo (L), absolute curveTo (C) and close (Z).
* @param path An SVG path split up in array form.
*/
path(path: (string | number)[]): ElementObject;
path(path: Array<string | number>): ElementObject;
/**
* Add a rectangle.
* @param x The x position of the rectangle's upper left corner.

View File

@@ -31,8 +31,8 @@ export class Parser extends EventEmitter {
export interface Options {
async?: boolean;
attrkey?: string;
attrNameProcessors?: ((name: string) => any)[];
attrValueProcessors?: ((name: string) => any)[];
attrNameProcessors?: Array<(name: string) => any>;
attrValueProcessors?: Array<(name: string) => any>;
charkey?: string;
charsAsChildren?: boolean;
childkey?: string;
@@ -47,10 +47,10 @@ export interface Options {
normalize?: boolean;
normalizeTags?: boolean;
strict?: boolean;
tagNameProcessors?: ((name: string) => any)[];
tagNameProcessors?: Array<(name: string) => any>;
trim?: boolean;
validator?: Function;
valueProcessors?: ((name: string) => any)[];
valueProcessors?: Array<(name: string) => any>;
xmlns?: boolean;
}