summaryrefslogtreecommitdiff
path: root/src/types/UUID.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/UUID.ts')
-rw-r--r--src/types/UUID.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types/UUID.ts b/src/types/UUID.ts
new file mode 100644
index 0000000..4a6c1eb
--- /dev/null
+++ b/src/types/UUID.ts
@@ -0,0 +1,7 @@
+import uuid from "uuid-v4";
+
+export default class UUID extends String {
+ constructor() {
+ super(uuid());
+ }
+} \ No newline at end of file