typed-id
Version:
A lightweight, type-safe TypeScript library for generating prefixed IDs with customizable options
7 lines (4 loc) • 378 B
text/typescript
import * as zod_mini from 'zod/mini';
import { I as IdHelper, S as SeparatorOrDefault } from '../index-pwtyyJO0.cjs';
declare function createZodIdSchema<P extends string, S extends string | undefined = undefined>(idHelper: IdHelper<P, S>): zod_mini.ZodMiniCustom<`${P}${SeparatorOrDefault<S>}${string}`, `${P}${SeparatorOrDefault<S>}${string}`>;
export { createZodIdSchema };