aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/utils.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tslint/lib/utils.d.ts')
-rw-r--r--node_modules/tslint/lib/utils.d.ts5
1 files changed, 3 insertions, 2 deletions
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<T> = (a: T, b: T) => boolean;
-export declare function arraysAreEqual<T>(a: T[] | undefined, b: T[] | undefined, eq: Equal<T>): boolean;
+export declare function arraysAreEqual<T>(a: ReadonlyArray<T> | undefined, b: ReadonlyArray<T> | undefined, eq: Equal<T>): boolean;
/** Returns the first non-`undefined` result. */
export declare function find<T, U>(inputs: T[], getResult: (t: T) => U | undefined): U | undefined;
/** Returns an array that is the concatenation of all output arrays. */
-export declare function flatMap<T, U>(inputs: T[], getOutputs: (input: T) => U[]): U[];
+export declare function flatMap<T, U>(inputs: ReadonlyArray<T>, getOutputs: (input: T, index: number) => ReadonlyArray<U>): U[];
/** Returns an array of all outputs that are not `undefined`. */
export declare function mapDefined<T, U>(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;