mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:33:25 +00:00
27 lines
440 B
TypeScript
27 lines
440 B
TypeScript
export type CommonMedia = {
|
|
title: string;
|
|
releaseYear: number;
|
|
imdbId?: string;
|
|
tmdbId: string;
|
|
};
|
|
|
|
export type MediaTypes = 'show' | 'movie';
|
|
|
|
export type ShowMedia = CommonMedia & {
|
|
type: 'show';
|
|
episode: {
|
|
number: number;
|
|
tmdbId: string;
|
|
};
|
|
season: {
|
|
number: number;
|
|
tmdbId: string;
|
|
};
|
|
};
|
|
|
|
export type MovieMedia = CommonMedia & {
|
|
type: 'movie';
|
|
};
|
|
|
|
export type ScrapeMedia = ShowMedia | MovieMedia;
|