From 1667c4c45b78bbeefbf3c4d7865d37eaeac1bbb2 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 9 Nov 2017 14:27:41 -0800 Subject: [PATCH] lint:Use Array<> for non-simple array types --- types/highcharts/index.d.ts | 4 ++-- types/xml2js/index.d.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index a79441dd47..3ce85ed9e2 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -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): ElementObject; /** * Add a rectangle. * @param x The x position of the rectangle's upper left corner. diff --git a/types/xml2js/index.d.ts b/types/xml2js/index.d.ts index 6685185376..9e228c6784 100644 --- a/types/xml2js/index.d.ts +++ b/types/xml2js/index.d.ts @@ -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; }