mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add extra types (from #463). No backing store for now
This commit is contained in:
parent
29d11720a5
commit
84ce544f4d
@ -75,12 +75,24 @@ export const Special = t.Intersect(
|
||||
);
|
||||
export type Special = typeof Special.static;
|
||||
|
||||
export const ExtraType = t.UnionEnum([
|
||||
"other",
|
||||
"trailers",
|
||||
"interview",
|
||||
"behind-the-scenes",
|
||||
"deleted-scenes",
|
||||
"bloopers",
|
||||
"mini-story",
|
||||
]);
|
||||
export type ExtraType = typeof ExtraType.static;
|
||||
|
||||
export const Extra = t.Intersect(
|
||||
[
|
||||
BaseEntry,
|
||||
t.Object({
|
||||
kind: t.Literal("extra"),
|
||||
number: t.Number({ minimum: 1 }),
|
||||
extraType: ExtraType,
|
||||
// not sure about this id type
|
||||
externalId: EpisodeId,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user