From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/tslint/lib/utils.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'node_modules/tslint/lib/utils.d.ts') diff --git a/node_modules/tslint/lib/utils.d.ts b/node_modules/tslint/lib/utils.d.ts index cd75a6f20..09100398c 100644 --- a/node_modules/tslint/lib/utils.d.ts +++ b/node_modules/tslint/lib/utils.d.ts @@ -46,13 +46,14 @@ export declare function stripComments(content: string): string; export declare function escapeRegExp(re: string): string; /** Return true if both parameters are equal. */ export declare type Equal = (a: T, b: T) => boolean; -export declare function arraysAreEqual(a: T[] | undefined, b: T[] | undefined, eq: Equal): boolean; +export declare function arraysAreEqual(a: ReadonlyArray | undefined, b: ReadonlyArray | undefined, eq: Equal): boolean; /** Returns the first non-`undefined` result. */ export declare function find(inputs: T[], getResult: (t: T) => U | undefined): U | undefined; /** Returns an array that is the concatenation of all output arrays. */ -export declare function flatMap(inputs: T[], getOutputs: (input: T) => U[]): U[]; +export declare function flatMap(inputs: ReadonlyArray, getOutputs: (input: T, index: number) => ReadonlyArray): U[]; /** Returns an array of all outputs that are not `undefined`. */ export declare function mapDefined(inputs: T[], getOutput: (input: T) => U | undefined): U[]; export declare function readBufferWithDetectedEncoding(buffer: Buffer): string; export declare type Encoding = "utf8" | "utf8-bom" | "utf16le" | "utf16be"; export declare function detectBufferEncoding(buffer: Buffer, length?: number): Encoding; +export declare function denormalizeWinPath(path: string): string; -- cgit v1.2.3