Described timetable constants
This commit is contained in:
parent
303ba734a3
commit
cbecf39e88
20
src/constants.ts
Normal file
20
src/constants.ts
Normal 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
5
src/types/time.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { WeekDays } from "../constants";
|
||||||
|
|
||||||
|
export type PeriodFormat = `${number}:${number}-${number}:${number}`;
|
||||||
|
|
||||||
|
export type WeekDay = typeof WeekDays[number];
|
Loading…
x
Reference in New Issue
Block a user