From 23419f7568e9aa281d7a38c27b42158ab7c18b86 Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Wed, 14 Jun 2017 14:02:04 +0300 Subject: [PATCH] Fixed type of return value for getJsonFromDiff --- README.md | 2 +- typescript/diff2html.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15a0e85..30517fe 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ let dif2html = require("diff2html").Diff2Html > Pretty HTML diff - getJsonFromDiff(input: string, configuration?: Options): Result + getJsonFromDiff(input: string, configuration?: Options): Result[] > Intermediate Json From Git Word Diff Output diff --git a/typescript/diff2html.d.ts b/typescript/diff2html.d.ts index e6c5066..3404348 100644 --- a/typescript/diff2html.d.ts +++ b/typescript/diff2html.d.ts @@ -55,7 +55,7 @@ declare namespace Diff2Html { } export interface Diff2Html { - getJsonFromDiff(input: string, configuration?: Options): Result; + getJsonFromDiff(input: string, configuration?: Options): Result[]; getPrettyHtml(input: any, configuration?: Options): string; } }