updated schedule page to use composition API and typescript

This commit is contained in:
Edward Tirado Jr 2025-04-08 17:02:54 -05:00
parent 0b16553bc4
commit 2589fde222
3 changed files with 125 additions and 63 deletions

10
src/types/schedule.ts Normal file
View file

@ -0,0 +1,10 @@
import type { Showing } from "~/types/showing";
export type Schedule = {
id: number;
name: string;
public: boolean;
owner: number;
showings: Showing[];
past_showings: Showing[];
};

8
src/types/showing.ts Normal file
View file

@ -0,0 +1,8 @@
import type { Movie } from "~/types/movie";
export type Showing = {
owner: number;
public: boolean;
movie: Movie;
showtime: string;
};