Fixed type of return value for getJsonFromDiff
This commit is contained in:
parent
e0f4a33c82
commit
23419f7568
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
typescript/diff2html.d.ts
vendored
2
typescript/diff2html.d.ts
vendored
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue