diff --git a/types/nodegit/diff-options.d.ts b/types/nodegit/diff-options.d.ts new file mode 100644 index 0000000000..e78de28aac --- /dev/null +++ b/types/nodegit/diff-options.d.ts @@ -0,0 +1,16 @@ +import { Strarray } from './str-array'; + +export interface DiffOptions { + version: number; + flags: number; + ignoreSubmodules: number; + pathspec: Strarray; + notifyCb: Function; + notifyPayload: void; + contextLines: number; + interhunkLines: number; + idAbbrev: number; + maxSize: number; + oldPrefix: string; + newPrefix: string; +} diff --git a/types/nodegit/index.d.ts b/types/nodegit/index.d.ts index bce68c89da..bcafde5c65 100644 --- a/types/nodegit/index.d.ts +++ b/types/nodegit/index.d.ts @@ -12,6 +12,7 @@ export { Config } from './config'; export { ConvenientPatch } from './convenient-patch'; export { DiffDelta } from './diff-delta'; export { DiffFile } from './diff-file'; +export { DiffOptions } from './diff-options'; export { DiffPerfdata } from './diff-perf-data'; export { Diff } from './diff'; export { Enums } from './enums'; diff --git a/types/nodegit/tsconfig.json b/types/nodegit/tsconfig.json index 6ae8a96742..65a9de572d 100644 --- a/types/nodegit/tsconfig.json +++ b/types/nodegit/tsconfig.json @@ -25,6 +25,7 @@ "convenient-patch.d.ts", "diff-delta.d.ts", "diff-file.d.ts", + "diff-options.d.ts", "diff-perf-data.d.ts", "diff.d.ts", "enums.d.ts",