mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
lint:Use Array<> for non-simple array types
This commit is contained in:
4
types/highcharts/index.d.ts
vendored
4
types/highcharts/index.d.ts
vendored
@@ -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.
|
||||
|
||||
8
types/xml2js/index.d.ts
vendored
8
types/xml2js/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user