add uuid
This commit is contained in:
6
src/uuid.d.ts
vendored
Normal file
6
src/uuid.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
type VariantNibble = "8" | "9" | "A" | "B";
|
||||
|
||||
type UUID<V extends '4'|'7'> = `${string}-${string}-${V}${string}-${VariantNibble}${string}-${string}`
|
||||
|
||||
type UUIDv4 = UUID<'4'>;
|
||||
type UUIDv7 = UUID<'7'>;
|
||||
Reference in New Issue
Block a user