mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -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 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(
|
export const Extra = t.Intersect(
|
||||||
[
|
[
|
||||||
BaseEntry,
|
BaseEntry,
|
||||||
t.Object({
|
t.Object({
|
||||||
kind: t.Literal("extra"),
|
kind: t.Literal("extra"),
|
||||||
number: t.Number({ minimum: 1 }),
|
number: t.Number({ minimum: 1 }),
|
||||||
|
extraType: ExtraType,
|
||||||
// not sure about this id type
|
// not sure about this id type
|
||||||
externalId: EpisodeId,
|
externalId: EpisodeId,
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user