@eristack/entity-id
Version:
UUID v7 entity identifiers — sortable, parseable, Drizzle column helper
8 lines • 530 B
TypeScript
import type { EntityId } from "./types.js";
export declare function bytesToCanonicalUuid(bytes: Uint8Array): EntityId;
export declare function canonicalUuidToBytes(id: string): Uint8Array;
export declare function assertEntityIdV7(bytes: Uint8Array): void;
export declare function unixMsFromV7Bytes(bytes: Uint8Array): number;
export declare function generateEntityIdBytes(unixMs: number, random: Uint8Array): Uint8Array;
export declare function isHyphenatedUuidLower(value: string): boolean;
//# sourceMappingURL=internal.d.ts.map