timetable-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

types.ts (350B)


      1 import type { Course, DayPeriodJa, SchoolPeriod } from 'common/types';
      2 
      3 export type Basis =
      4 	| { type: 'dayPeriod'; dayPeriod: DayPeriodJa }
      5 	| { type: 'temporary'; id?: number };
      6 
      7 export type OnePeriod = { courses: Course[]; basis: Basis };
      8 
      9 export type DayTimetable = {
     10 	date: string;
     11 	event?: string;
     12 } & Partial<Record<SchoolPeriod, OnePeriod>>;