updated schedule page to use composition API and typescript
This commit is contained in:
parent
0b16553bc4
commit
2589fde222
3 changed files with 125 additions and 63 deletions
10
src/types/schedule.ts
Normal file
10
src/types/schedule.ts
Normal 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
8
src/types/showing.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import type { Movie } from "~/types/movie";
|
||||
|
||||
export type Showing = {
|
||||
owner: number;
|
||||
public: boolean;
|
||||
movie: Movie;
|
||||
showtime: string;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue