UNPKG

@chassisjs/hermes

Version:

Production-Ready TypeScript Outbox Pattern

8 lines (7 loc) 332 B
import crypto from 'node:crypto'; import { NonEmptyString } from './NonEmptyString.js'; type Uuid4String<T extends string = string> = NonEmptyString<T, crypto.UUID> & { readonly __isUUID4?: true; }; declare const parseUuid4: <T extends string = string>(value: string) => Uuid4String<T>; export { parseUuid4, type Uuid4String };