mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
11 lines
372 B
TypeScript
11 lines
372 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([Movie, t.Object({ kind: t.Literal("movie") })]),
|
|
t.Intersect([Serie, t.Object({ kind: t.Literal("serie") })]),
|
|
t.Intersect([Collection, t.Object({ kind: t.Literal("collection") })]),
|
|
]);
|