mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
12 lines
411 B
TypeScript
12 lines
411 B
TypeScript
import { t } from "elysia";
|
|
import { Collection } from "./collections";
|
|
import { Movie } from "./movie";
|
|
import { Serie } from "./serie";
|
|
|
|
export const Show = t.Union([
|
|
t.Intersect([t.Object({ kind: t.Literal("movie") }), Movie]),
|
|
t.Intersect([t.Object({ kind: t.Literal("serie") }), Serie]),
|
|
t.Intersect([t.Object({ kind: t.Literal("collection") }), Collection]),
|
|
]);
|
|
export type Show = typeof Show.static;
|