-
-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Request a feature
🤷 Motivation
I'm validating with "string.uuid" and its variations and expecting the inference type should be more like "node:crypto" UUID instead of "string"
type UUID = `${string}-${string}-${string}-${string}-${string}`;
💡 Solution
My current workaround
import type { UUID } from "node:crypto";
import { type } from "arktype";
export const UUIDBranded = type("string.uuid").pipe((s: UUID): UUID => s);
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To do