Compare commits
3 Commits
3a4ceb22f4
...
aaaa
| Author | SHA1 | Date | |
|---|---|---|---|
| 413139eb32 | |||
| c105e493df | |||
| 5f6d3208ac |
0
src/aws/types.d.ts → src/aws.d.ts
vendored
0
src/aws/types.d.ts → src/aws.d.ts
vendored
1
src/brand.d.ts
vendored
Normal file
1
src/brand.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
type Brand<T, B> = T & { readonly __brand: B };
|
||||||
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