UNPKG

ravendb

Version:
18 lines 794 B
import { DocumentConventions } from "../Conventions/DocumentConventions.js"; export declare class GenerateEntityIdOnTheClient { private _conventions; private _generateId; constructor(conventions: DocumentConventions, generateId: (obj: object) => Promise<string>); private _getIdentityProperty; /** * Attempts to get the document key from an instance */ tryGetIdFromInstance(entity: object, idCallback?: (id: string) => void): boolean; getOrGenerateDocumentId(entity: object): Promise<string>; generateDocumentKeyForStorage(entity: object): Promise<string>; /** * Tries to set the identity property */ trySetIdentity(entity: object, id: string, isProjection?: boolean): void; } //# sourceMappingURL=GenerateEntityIdOnTheClient.d.ts.map