summaryrefslogtreecommitdiff
path: root/src/types/Date.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/Date.d.ts')
-rw-r--r--src/types/Date.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types/Date.d.ts b/src/types/Date.d.ts
new file mode 100644
index 0000000..5e1df66
--- /dev/null
+++ b/src/types/Date.d.ts
@@ -0,0 +1,10 @@
+type Year = `${19 | 20}${Digit}${Digit}`;
+type Month = '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' | '10' | '11' | '12';
+type Day =
+ '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' |
+ '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' |
+ '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' |
+ '30' | '31';
+type Date = `${Year}-${Month}-${Day}`;
+
+export default Date; \ No newline at end of file