mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 08:41:51 +01:00
move forgotten typedefs
This commit is contained in:
parent
9d0878c5f1
commit
e5be04f5ae
@ -13,7 +13,7 @@ import {
|
||||
mediaTypeToTMDB,
|
||||
} from "./tmdb";
|
||||
import {
|
||||
JWMediaResult,
|
||||
JWDetailedMeta,
|
||||
JWSeasonMetaResult,
|
||||
JW_API_BASE,
|
||||
} from "./types/justwatch";
|
||||
@ -26,23 +26,6 @@ import {
|
||||
} from "./types/tmdb";
|
||||
import { makeUrl, proxiedFetch } from "../helpers/fetch";
|
||||
|
||||
type JWExternalIdType =
|
||||
| "eidr"
|
||||
| "imdb_latest"
|
||||
| "imdb"
|
||||
| "tmdb_latest"
|
||||
| "tmdb"
|
||||
| "tms";
|
||||
|
||||
interface JWExternalId {
|
||||
provider: JWExternalIdType;
|
||||
external_id: string;
|
||||
}
|
||||
|
||||
interface JWDetailedMeta extends JWMediaResult {
|
||||
external_ids: JWExternalId[];
|
||||
}
|
||||
|
||||
export interface DetailedMeta {
|
||||
meta: MWMediaMeta;
|
||||
imdbId?: string;
|
||||
|
@ -46,3 +46,20 @@ export type JWSeasonMetaResult = {
|
||||
season_number: number;
|
||||
episodes: JWEpisodeShort[];
|
||||
};
|
||||
|
||||
export type JWExternalIdType =
|
||||
| "eidr"
|
||||
| "imdb_latest"
|
||||
| "imdb"
|
||||
| "tmdb_latest"
|
||||
| "tmdb"
|
||||
| "tms";
|
||||
|
||||
export interface JWExternalId {
|
||||
provider: JWExternalIdType;
|
||||
external_id: string;
|
||||
}
|
||||
|
||||
export interface JWDetailedMeta extends JWMediaResult {
|
||||
external_ids: JWExternalId[];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user