From ce51a095f8425ab2368a178b344a6814528308ef Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 27 Jul 2017 13:42:32 -0700 Subject: [PATCH] Add another use of the Comparer type (#17438) --- src/compiler/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 2089722e426..728fb433c04 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -711,7 +711,7 @@ namespace ts { * are not present in `arrayA` but are present in `arrayB`. Assumes both arrays are sorted * based on the provided comparer. */ - export function relativeComplement(arrayA: T[] | undefined, arrayB: T[] | undefined, comparer: (x: T, y: T) => Comparison = compareValues, offsetA = 0, offsetB = 0): T[] | undefined { + export function relativeComplement(arrayA: T[] | undefined, arrayB: T[] | undefined, comparer: Comparer = compareValues, offsetA = 0, offsetB = 0): T[] | undefined { if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0) return arrayB; const result: T[] = []; outer: for (; offsetB < arrayB.length; offsetB++) {