From 5d761ccef7341be9da1aee5eab3a6a5d1fd6a1e9 Mon Sep 17 00:00:00 2001 From: John Renner Date: Wed, 19 Jul 2017 17:31:33 -0700 Subject: [PATCH] Rename constants to match library --- types/fast-diff/fast-diff-tests.ts | 6 +++--- types/fast-diff/index.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/fast-diff/fast-diff-tests.ts b/types/fast-diff/fast-diff-tests.ts index 93c512d99b..3177bfa7fc 100644 --- a/types/fast-diff/fast-diff-tests.ts +++ b/types/fast-diff/fast-diff-tests.ts @@ -9,8 +9,8 @@ diffs.forEach((diff: fastDiff.Diff) => { const text: string = diff[1]; switch (diff[0]) { - case fastDiff.DIFF_EQUAL: break; - case fastDiff.DIFF_DELETE: break; - case fastDiff.DIFF_INSERT: break; + case fastDiff.EQUAL: break; + case fastDiff.DELETE: break; + case fastDiff.INSERT: break; } }); diff --git a/types/fast-diff/index.d.ts b/types/fast-diff/index.d.ts index 484fca223f..1f306a6e9d 100644 --- a/types/fast-diff/index.d.ts +++ b/types/fast-diff/index.d.ts @@ -8,9 +8,9 @@ declare function diff(text1: string, text2: string, cursorPos?: number): diff.Di declare namespace diff { type Diff = [-1 | 0 | 1, string]; - const DIFF_DELETE: -1; - const DIFF_INSERT: 1; - const DIFF_EQUAL: 0; + const DELETE: -1; + const INSERT: 1; + const EQUAL: 0; } export = diff;