Kyoo/front/src/models/resources/watchlist.ts
2025-06-07 19:30:05 +02:00

20 lines
296 B
TypeScript

import { z } from "zod";
import { MovieP } from "./movie";
import { ShowP } from "./show";
export const WatchlistP = z.union([
/*
* Either a show
*/
ShowP,
/*
* Or a Movie
*/
MovieP,
]);
/**
* A item in the user's watchlist.
*/
export type Watchlist = z.infer<typeof WatchlistP>;