Added OdbExpandId

This commit is contained in:
Dolan
2017-06-09 01:37:03 +01:00
parent 21a5f52f75
commit 41256279f0
4 changed files with 11 additions and 1 deletions

View File

@@ -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';

7
types/nodegit/odb-expand-id.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
import { Oid } from './oid';
export class OdbExpandId {
id: Oid
length: number
type: number
}

View File

@@ -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<OdbObject>;
write(data: Buffer, len: number, type: number): Promise<Oid>;
expandIds(ids, count: number): number;
expandIds(ids: OdbExpandId, count: number): number;
}

View File

@@ -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",