mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 22:14:54 +10:00
9 lines
210 B
TypeScript
9 lines
210 B
TypeScript
import { createId } from "@paralleldrive/cuid2";
|
|
import { z } from "zod";
|
|
|
|
export const idSchema = z
|
|
.string()
|
|
.cuid2()
|
|
.default(createId())
|
|
.describe("Unique identifier for the item in Cuid2 format");
|