diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-05 21:16:45 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-05 21:37:58 +0100 |
| commit | 3098c31049e17dfdcdf451e843f6c4bdcf5b2fa1 (patch) | |
| tree | b3590c527d147db6ef5519d43e8a1976f9674f42 /src/types/Date.d.ts | |
| parent | 97147d56d93c7949fdccf22abe569b1b9d7a22ab (diff) | |
Moves to root folder
Diffstat (limited to 'src/types/Date.d.ts')
| -rw-r--r-- | src/types/Date.d.ts | 10 |
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 |
