Described timetable constants

This commit is contained in:
Dmitriy Shishkov 2021-09-04 01:56:52 +03:00
parent 303ba734a3
commit cbecf39e88
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060
2 changed files with 25 additions and 0 deletions

20
src/constants.ts Normal file
View File

@ -0,0 +1,20 @@
import { PeriodFormat } from "./types/time";
export const lessonPeriods: readonly PeriodFormat[] = [
"8:30-9:10",
"9:20-10:00",
"10:15-10:55",
"11:10-11:50",
"12:00-12:40",
"12:50-13:30",
] as const;
export const WeekDays = [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday",
] as const;

5
src/types/time.ts Normal file
View File

@ -0,0 +1,5 @@
import { WeekDays } from "../constants";
export type PeriodFormat = `${number}:${number}-${number}:${number}`;
export type WeekDay = typeof WeekDays[number];