UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

9 lines (6 loc) 186 B
import { toUuid } from './Uuid'; export type Id = string | number; export type Key = Id; export type Code = Id; export type HasId = { id: Id }; export const toId = (): Id => toUuid();