From 41256279f00c2eeae19da14eadfcf0192b72d1f5 Mon Sep 17 00:00:00 2001 From: Dolan Date: Fri, 9 Jun 2017 01:37:03 +0100 Subject: [PATCH] Added OdbExpandId --- types/nodegit/index.d.ts | 1 + types/nodegit/odb-expand-id.d.ts | 7 +++++++ types/nodegit/odb.d.ts | 3 ++- types/nodegit/tsconfig.json | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 types/nodegit/odb-expand-id.d.ts diff --git a/types/nodegit/index.d.ts b/types/nodegit/index.d.ts index 4efd864946..6551907ea4 100644 --- a/types/nodegit/index.d.ts +++ b/types/nodegit/index.d.ts @@ -58,6 +58,7 @@ export { MergeOptions } from './merge-options'; export { Merge } from './merge'; export { Note } from './note'; export { Object } from './object'; +export { OdbExpandId } from './odb-expand-id'; export { OdbObject } from './odb-object'; export { Odb } from './odb'; export { Oidarray } from './oid-array'; diff --git a/types/nodegit/odb-expand-id.d.ts b/types/nodegit/odb-expand-id.d.ts new file mode 100644 index 0000000000..842c65774e --- /dev/null +++ b/types/nodegit/odb-expand-id.d.ts @@ -0,0 +1,7 @@ +import { Oid } from './oid'; + +export class OdbExpandId { + id: Oid + length: number + type: number +} diff --git a/types/nodegit/odb.d.ts b/types/nodegit/odb.d.ts index ebaca11b5d..efc4fcbe13 100644 --- a/types/nodegit/odb.d.ts +++ b/types/nodegit/odb.d.ts @@ -1,5 +1,6 @@ import { Oid } from './oid'; import { OdbObject } from './odb-object'; +import { OdbExpandId } from './odb-expand-id'; export namespace Odb { const enum STREAM { @@ -16,5 +17,5 @@ export class Odb { free(): void; read(id: Oid): Promise; write(data: Buffer, len: number, type: number): Promise; - expandIds(ids, count: number): number; + expandIds(ids: OdbExpandId, count: number): number; } diff --git a/types/nodegit/tsconfig.json b/types/nodegit/tsconfig.json index 635c40ac91..829e49aedd 100644 --- a/types/nodegit/tsconfig.json +++ b/types/nodegit/tsconfig.json @@ -72,6 +72,7 @@ "nodegit-tests.ts", "note.d.ts", "object.d.ts", + "odb-expand-id.d.ts", "odb-object.d.ts", "odb.d.ts", "oid-array.d.ts",