added the Object.TYPE enum as well as fixed typos on Object.type2String and Object.string2Type

This commit is contained in:
Zachary Wade
2018-06-07 10:53:00 -04:00
parent 9fb84d20ac
commit 997a0150e9
5 changed files with 30 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
import { Oid } from './oid';
import { OdbObject } from './odb-object';
import { OdbExpandId } from './odb-expand-id';
import { Object } from './object';
export namespace Odb {
const enum STREAM {
@@ -17,6 +18,6 @@ export class Odb {
free(): void;
read(id: Oid): Promise<OdbObject>;
write(data: Buffer, len: number, type: number): Promise<Oid>;
write(data: Buffer, len: number, type: Object.TYPE): Promise<Oid>;
expandIds(ids: OdbExpandId, count: number): number;
}