mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-09 14:45:10 -05:00
20 lines
296 B
TypeScript
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>;
|