From 413139eb32fca62a2a35f73c2b2724a2a5f5a98e Mon Sep 17 00:00:00 2001 From: "t.behrendt" Date: Tue, 12 Aug 2025 09:32:45 +0200 Subject: [PATCH] add uuid --- src/uuid.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/uuid.d.ts diff --git a/src/uuid.d.ts b/src/uuid.d.ts new file mode 100644 index 0000000..f9c8ac4 --- /dev/null +++ b/src/uuid.d.ts @@ -0,0 +1,6 @@ +type VariantNibble = "8" | "9" | "A" | "B"; + +type UUID = `${string}-${string}-${V}${string}-${VariantNibble}${string}-${string}` + +type UUIDv4 = UUID<'4'>; +type UUIDv7 = UUID<'7'>;