mirror of
https://github.com/movie-web/movie-web.git
synced 2025-09-13 15:33:25 +00:00
move forgotten typedefs
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
|||||||
mediaTypeToTMDB,
|
mediaTypeToTMDB,
|
||||||
} from "./tmdb";
|
} from "./tmdb";
|
||||||
import {
|
import {
|
||||||
JWMediaResult,
|
JWDetailedMeta,
|
||||||
JWSeasonMetaResult,
|
JWSeasonMetaResult,
|
||||||
JW_API_BASE,
|
JW_API_BASE,
|
||||||
} from "./types/justwatch";
|
} from "./types/justwatch";
|
||||||
@@ -26,23 +26,6 @@ import {
|
|||||||
} from "./types/tmdb";
|
} from "./types/tmdb";
|
||||||
import { makeUrl, proxiedFetch } from "../helpers/fetch";
|
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 {
|
export interface DetailedMeta {
|
||||||
meta: MWMediaMeta;
|
meta: MWMediaMeta;
|
||||||
imdbId?: string;
|
imdbId?: string;
|
||||||
|
@@ -46,3 +46,20 @@ export type JWSeasonMetaResult = {
|
|||||||
season_number: number;
|
season_number: number;
|
||||||
episodes: JWEpisodeShort[];
|
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[];
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user