diff --git a/types/nodegit/hash-sig.d.ts b/types/nodegit/hash-sig.d.ts new file mode 100644 index 0000000000..7cc6a91c05 --- /dev/null +++ b/types/nodegit/hash-sig.d.ts @@ -0,0 +1,7 @@ +export class Hashsig { + static create(buf: string, buflen: number, opts: number): Promise; + static createFromFile(path: string, opts: number): Promise; + + compare(b: Hashsig): number; + free(): void; +} diff --git a/types/nodegit/index.d.ts b/types/nodegit/index.d.ts index 6803e441af..c863896f24 100644 --- a/types/nodegit/index.d.ts +++ b/types/nodegit/index.d.ts @@ -16,6 +16,7 @@ export { DiffPerfdata } from './diff-perf-data'; export { Diff } from './diff'; export { Enums } from './enums'; export { FetchOptions } from './fetch-options'; +export { Hashsig } from './hash-sig'; export { Index } from './index_'; export { IndexEntry } from './index-entry'; export { Ignore } from './ignore'; diff --git a/types/nodegit/tsconfig.json b/types/nodegit/tsconfig.json index 17fc3afa54..b7d15c0739 100644 --- a/types/nodegit/tsconfig.json +++ b/types/nodegit/tsconfig.json @@ -29,6 +29,7 @@ "diff.d.ts", "enums.d.ts", "fetch-options.d.ts", + "hash-sig.d.ts", "ignore.d.ts", "index-entry.d.ts", "index.d.ts",