einvoicing
Version:
A JavaScript library for creating and parsing electronic invoices compliant with the eInvoicing Directive, EN 16931, and popular extensions
13 lines (12 loc) • 377 B
TypeScript
export declare class EntityId<T> {
protected _recordId: T | null;
protected _uuid: string;
constructor(recordId?: T, isHash?: boolean, uuid?: string);
private createUUID;
get hashOptions(): [string, number];
toHash(): string;
fromHash(hash: string): EntityId<T>;
toPrimitive(): T;
toString(): string;
equals(id: EntityId<T>): boolean;
}