tmdb-kit 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +293 -198
- package/dist/cli.js +3132 -0
- package/dist/client.d.cts +63 -0
- package/dist/client.d.ts +63 -0
- package/dist/errors.d.cts +74 -0
- package/dist/errors.d.ts +74 -0
- package/dist/http.d.cts +80 -0
- package/dist/http.d.ts +80 -0
- package/dist/index.cjs +747 -768
- package/dist/index.cjs.map +23 -1
- package/dist/index.d.cts +8 -783
- package/dist/index.d.ts +8 -783
- package/dist/index.js +707 -745
- package/dist/index.js.map +23 -1
- package/dist/query.d.cts +77 -0
- package/dist/query.d.ts +77 -0
- package/dist/resources/configuration.d.cts +17 -0
- package/dist/resources/configuration.d.ts +17 -0
- package/dist/resources/genres.d.cts +13 -0
- package/dist/resources/genres.d.ts +13 -0
- package/dist/resources/images.d.cts +17 -0
- package/dist/resources/images.d.ts +17 -0
- package/dist/resources/movies.d.cts +21 -0
- package/dist/resources/movies.d.ts +21 -0
- package/dist/resources/people.d.cts +14 -0
- package/dist/resources/people.d.ts +14 -0
- package/dist/resources/search.d.cts +15 -0
- package/dist/resources/search.d.ts +15 -0
- package/dist/resources/trending.d.cts +23 -0
- package/dist/resources/trending.d.ts +23 -0
- package/dist/resources/tv.d.cts +22 -0
- package/dist/resources/tv.d.ts +22 -0
- package/dist/search-guards.d.cts +32 -0
- package/dist/search-guards.d.ts +32 -0
- package/dist/types.d.cts +452 -0
- package/dist/types.d.ts +452 -0
- package/package.json +26 -19
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { ImageSize } from '../types.js';
|
|
3
|
+
/** Function that transforms a TMDB image URL (e.g. for CDN proxying). */
|
|
4
|
+
export type ImageUrlTransform = (url: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Helper for constructing TMDB image URLs from API path values.
|
|
7
|
+
*
|
|
8
|
+
* Obtained via `client.images`. Supports optional URL transforms for
|
|
9
|
+
* routing image requests through a CDN or proxy.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ImagesHelper {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(transport: TMDBTransport, transform?: ImageUrlTransform);
|
|
14
|
+
url(path: string | null | undefined, size?: ImageSize, options?: {
|
|
15
|
+
transform?: ImageUrlTransform;
|
|
16
|
+
}): string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.cjs';
|
|
2
|
+
import type { CreditsResponse, ImageQueryOptions, ImagesResponse, ListOptions, MovieDetails, MovieDetailsOptions, MovieSummary, PagedResponse, TMDBObject, VideosResponse } from '../types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB movie endpoints (popular, top-rated, details, credits, etc.).
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.movies`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MoviesResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
12
|
+
topRated(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
13
|
+
nowPlaying(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
14
|
+
upcoming(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
15
|
+
details<TAppend extends TMDBObject = TMDBObject>(movieId: number, options?: MovieDetailsOptions): Promise<MovieDetails & TAppend>;
|
|
16
|
+
credits(movieId: number, options?: Pick<ListOptions, 'language'>): Promise<CreditsResponse>;
|
|
17
|
+
images(movieId: number, options?: ImageQueryOptions): Promise<ImagesResponse>;
|
|
18
|
+
recommendations(movieId: number, options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
19
|
+
similar(movieId: number, options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
20
|
+
videos(movieId: number, options?: Pick<ListOptions, 'language'>): Promise<VideosResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { CreditsResponse, ImageQueryOptions, ImagesResponse, ListOptions, MovieDetails, MovieDetailsOptions, MovieSummary, PagedResponse, TMDBObject, VideosResponse } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB movie endpoints (popular, top-rated, details, credits, etc.).
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.movies`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MoviesResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
12
|
+
topRated(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
13
|
+
nowPlaying(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
14
|
+
upcoming(options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
15
|
+
details<TAppend extends TMDBObject = TMDBObject>(movieId: number, options?: MovieDetailsOptions): Promise<MovieDetails & TAppend>;
|
|
16
|
+
credits(movieId: number, options?: Pick<ListOptions, 'language'>): Promise<CreditsResponse>;
|
|
17
|
+
images(movieId: number, options?: ImageQueryOptions): Promise<ImagesResponse>;
|
|
18
|
+
recommendations(movieId: number, options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
19
|
+
similar(movieId: number, options?: ListOptions): Promise<PagedResponse<MovieSummary>>;
|
|
20
|
+
videos(movieId: number, options?: Pick<ListOptions, 'language'>): Promise<VideosResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.cjs';
|
|
2
|
+
import type { LanguageOptions, ListOptions, PagedResponse, PersonCombinedCreditsResponse, PersonDetails, PersonSummary } from '../types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB person (actor, director, etc.) endpoints.
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.people`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PeopleResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<PersonSummary>>;
|
|
12
|
+
details(personId: number, options?: LanguageOptions): Promise<PersonDetails>;
|
|
13
|
+
combinedCredits(personId: number, options?: LanguageOptions): Promise<PersonCombinedCreditsResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { LanguageOptions, ListOptions, PagedResponse, PersonCombinedCreditsResponse, PersonDetails, PersonSummary } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB person (actor, director, etc.) endpoints.
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.people`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PeopleResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<PersonSummary>>;
|
|
12
|
+
details(personId: number, options?: LanguageOptions): Promise<PersonDetails>;
|
|
13
|
+
combinedCredits(personId: number, options?: LanguageOptions): Promise<PersonCombinedCreditsResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.cjs';
|
|
2
|
+
import type { MovieSearchOptions, MovieSearchResult, MultiSearchOptions, PagedResponse, PersonSearchResult, SearchMultiResult, TVSearchOptions, TVSearchResult } from '../types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Search TMDB for movies, TV shows, people, or all media types.
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.search`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SearchResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
movies(query: string, options?: MovieSearchOptions): Promise<PagedResponse<MovieSearchResult>>;
|
|
12
|
+
tv(query: string, options?: TVSearchOptions): Promise<PagedResponse<TVSearchResult>>;
|
|
13
|
+
people(query: string, options?: MultiSearchOptions): Promise<PagedResponse<PersonSearchResult>>;
|
|
14
|
+
multi(query: string, options?: MultiSearchOptions): Promise<PagedResponse<SearchMultiResult>>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { MovieSearchOptions, MovieSearchResult, MultiSearchOptions, PagedResponse, PersonSearchResult, SearchMultiResult, TVSearchOptions, TVSearchResult } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Search TMDB for movies, TV shows, people, or all media types.
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.search`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SearchResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
movies(query: string, options?: MovieSearchOptions): Promise<PagedResponse<MovieSearchResult>>;
|
|
12
|
+
tv(query: string, options?: TVSearchOptions): Promise<PagedResponse<TVSearchResult>>;
|
|
13
|
+
people(query: string, options?: MultiSearchOptions): Promise<PagedResponse<PersonSearchResult>>;
|
|
14
|
+
multi(query: string, options?: MultiSearchOptions): Promise<PagedResponse<SearchMultiResult>>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.cjs';
|
|
2
|
+
import type { ListOptions, MovieSummary, PagedResponse, PersonSummary, TrendingResult, TrendingTimeWindow, TVSummary } from '../types.cjs';
|
|
3
|
+
type TrendingOptions = Omit<ListOptions, 'region'>;
|
|
4
|
+
/**
|
|
5
|
+
* Access TMDB trending content (movies, TV, people) for day/week windows.
|
|
6
|
+
*
|
|
7
|
+
* Obtained via `client.trending`.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TrendingResource {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(transport: TMDBTransport);
|
|
12
|
+
all(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<TrendingResult>>;
|
|
13
|
+
movies(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<MovieSummary & {
|
|
14
|
+
media_type?: 'movie';
|
|
15
|
+
}>>;
|
|
16
|
+
tv(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<TVSummary & {
|
|
17
|
+
media_type?: 'tv';
|
|
18
|
+
}>>;
|
|
19
|
+
people(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<PersonSummary & {
|
|
20
|
+
media_type?: 'person';
|
|
21
|
+
}>>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { ListOptions, MovieSummary, PagedResponse, PersonSummary, TrendingResult, TrendingTimeWindow, TVSummary } from '../types.js';
|
|
3
|
+
type TrendingOptions = Omit<ListOptions, 'region'>;
|
|
4
|
+
/**
|
|
5
|
+
* Access TMDB trending content (movies, TV, people) for day/week windows.
|
|
6
|
+
*
|
|
7
|
+
* Obtained via `client.trending`.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TrendingResource {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(transport: TMDBTransport);
|
|
12
|
+
all(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<TrendingResult>>;
|
|
13
|
+
movies(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<MovieSummary & {
|
|
14
|
+
media_type?: 'movie';
|
|
15
|
+
}>>;
|
|
16
|
+
tv(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<TVSummary & {
|
|
17
|
+
media_type?: 'tv';
|
|
18
|
+
}>>;
|
|
19
|
+
people(timeWindow?: TrendingTimeWindow, options?: TrendingOptions): Promise<PagedResponse<PersonSummary & {
|
|
20
|
+
media_type?: 'person';
|
|
21
|
+
}>>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.cjs';
|
|
2
|
+
import type { CreditsResponse, ImageQueryOptions, ImagesResponse, LanguageOptions, ListOptions, PagedResponse, TMDBObject, TVDetails, TVDetailsOptions, TVSeasonDetails, TVSeasonDetailsOptions, TVSummary, VideosResponse } from '../types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB TV show endpoints (popular, top-rated, details, seasons, etc.).
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.tv`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TVResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
12
|
+
topRated(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
13
|
+
airingToday(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
14
|
+
onTheAir(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
15
|
+
details<TAppend extends TMDBObject = TMDBObject>(seriesId: number, options?: TVDetailsOptions): Promise<TVDetails & TAppend>;
|
|
16
|
+
credits(seriesId: number, options?: LanguageOptions): Promise<CreditsResponse>;
|
|
17
|
+
images(seriesId: number, options?: ImageQueryOptions): Promise<ImagesResponse>;
|
|
18
|
+
recommendations(seriesId: number, options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
19
|
+
similar(seriesId: number, options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
20
|
+
videos(seriesId: number, options?: LanguageOptions): Promise<VideosResponse>;
|
|
21
|
+
seasonDetails<TAppend extends TMDBObject = TMDBObject>(seriesId: number, seasonNumber: number, options?: TVSeasonDetailsOptions): Promise<TVSeasonDetails & TAppend>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TMDBTransport } from '../http.js';
|
|
2
|
+
import type { CreditsResponse, ImageQueryOptions, ImagesResponse, LanguageOptions, ListOptions, PagedResponse, TMDBObject, TVDetails, TVDetailsOptions, TVSeasonDetails, TVSeasonDetailsOptions, TVSummary, VideosResponse } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Access TMDB TV show endpoints (popular, top-rated, details, seasons, etc.).
|
|
5
|
+
*
|
|
6
|
+
* Obtained via `client.tv`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TVResource {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(transport: TMDBTransport);
|
|
11
|
+
popular(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
12
|
+
topRated(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
13
|
+
airingToday(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
14
|
+
onTheAir(options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
15
|
+
details<TAppend extends TMDBObject = TMDBObject>(seriesId: number, options?: TVDetailsOptions): Promise<TVDetails & TAppend>;
|
|
16
|
+
credits(seriesId: number, options?: LanguageOptions): Promise<CreditsResponse>;
|
|
17
|
+
images(seriesId: number, options?: ImageQueryOptions): Promise<ImagesResponse>;
|
|
18
|
+
recommendations(seriesId: number, options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
19
|
+
similar(seriesId: number, options?: Omit<ListOptions, 'region'>): Promise<PagedResponse<TVSummary>>;
|
|
20
|
+
videos(seriesId: number, options?: LanguageOptions): Promise<VideosResponse>;
|
|
21
|
+
seasonDetails<TAppend extends TMDBObject = TMDBObject>(seriesId: number, seasonNumber: number, options?: TVSeasonDetailsOptions): Promise<TVSeasonDetails & TAppend>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MovieMultiResult, MovieSearchResult, PersonMultiResult, PersonSearchResult, SearchMultiResult, TVMultiResult, TVSearchResult } from './types.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard that narrows a `search.multi()` result to a movie entry.
|
|
4
|
+
*
|
|
5
|
+
* The `media_type` field is required on every `/search/multi` payload by
|
|
6
|
+
* TMDB, so this check is safe at runtime and produces a strictly typed
|
|
7
|
+
* MovieSummary on the narrowed branch.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isMovieSearchResult(result: SearchMultiResult): result is MovieMultiResult;
|
|
10
|
+
export declare function isMovieSearchResult(result: unknown): result is MovieMultiResult;
|
|
11
|
+
/** Type guard that narrows a `search.multi()` result to a TV entry. */
|
|
12
|
+
export declare function isTVSearchResult(result: SearchMultiResult): result is TVMultiResult;
|
|
13
|
+
export declare function isTVSearchResult(result: unknown): result is TVMultiResult;
|
|
14
|
+
/** Type guard that narrows a `search.multi()` result to a person entry. */
|
|
15
|
+
export declare function isPersonSearchResult(result: SearchMultiResult): result is PersonMultiResult;
|
|
16
|
+
export declare function isPersonSearchResult(result: unknown): result is PersonMultiResult;
|
|
17
|
+
/**
|
|
18
|
+
* Convenience alias: `isMovieSearchResult` works on a `search.movies()`
|
|
19
|
+
* result (which already has the narrow type but is also tagged with
|
|
20
|
+
* `media_type?: 'movie'`), as well as on multi-search results.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isMovie(result: MovieSearchResult | SearchMultiResult): result is MovieMultiResult;
|
|
23
|
+
export declare function isMovie(result: SearchMultiResult): result is MovieMultiResult;
|
|
24
|
+
export declare function isMovie(result: unknown): result is MovieMultiResult;
|
|
25
|
+
/** Type guard that narrows a search result to a TV entry. */
|
|
26
|
+
export declare function isTV(result: TVSearchResult | SearchMultiResult): result is TVMultiResult;
|
|
27
|
+
export declare function isTV(result: SearchMultiResult): result is TVMultiResult;
|
|
28
|
+
export declare function isTV(result: unknown): result is TVMultiResult;
|
|
29
|
+
/** Type guard that narrows a search result to a person entry. */
|
|
30
|
+
export declare function isPerson(result: PersonSearchResult | SearchMultiResult): result is PersonMultiResult;
|
|
31
|
+
export declare function isPerson(result: SearchMultiResult): result is PersonMultiResult;
|
|
32
|
+
export declare function isPerson(result: unknown): result is PersonMultiResult;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MovieMultiResult, MovieSearchResult, PersonMultiResult, PersonSearchResult, SearchMultiResult, TVMultiResult, TVSearchResult } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard that narrows a `search.multi()` result to a movie entry.
|
|
4
|
+
*
|
|
5
|
+
* The `media_type` field is required on every `/search/multi` payload by
|
|
6
|
+
* TMDB, so this check is safe at runtime and produces a strictly typed
|
|
7
|
+
* MovieSummary on the narrowed branch.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isMovieSearchResult(result: SearchMultiResult): result is MovieMultiResult;
|
|
10
|
+
export declare function isMovieSearchResult(result: unknown): result is MovieMultiResult;
|
|
11
|
+
/** Type guard that narrows a `search.multi()` result to a TV entry. */
|
|
12
|
+
export declare function isTVSearchResult(result: SearchMultiResult): result is TVMultiResult;
|
|
13
|
+
export declare function isTVSearchResult(result: unknown): result is TVMultiResult;
|
|
14
|
+
/** Type guard that narrows a `search.multi()` result to a person entry. */
|
|
15
|
+
export declare function isPersonSearchResult(result: SearchMultiResult): result is PersonMultiResult;
|
|
16
|
+
export declare function isPersonSearchResult(result: unknown): result is PersonMultiResult;
|
|
17
|
+
/**
|
|
18
|
+
* Convenience alias: `isMovieSearchResult` works on a `search.movies()`
|
|
19
|
+
* result (which already has the narrow type but is also tagged with
|
|
20
|
+
* `media_type?: 'movie'`), as well as on multi-search results.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isMovie(result: MovieSearchResult | SearchMultiResult): result is MovieMultiResult;
|
|
23
|
+
export declare function isMovie(result: SearchMultiResult): result is MovieMultiResult;
|
|
24
|
+
export declare function isMovie(result: unknown): result is MovieMultiResult;
|
|
25
|
+
/** Type guard that narrows a search result to a TV entry. */
|
|
26
|
+
export declare function isTV(result: TVSearchResult | SearchMultiResult): result is TVMultiResult;
|
|
27
|
+
export declare function isTV(result: SearchMultiResult): result is TVMultiResult;
|
|
28
|
+
export declare function isTV(result: unknown): result is TVMultiResult;
|
|
29
|
+
/** Type guard that narrows a search result to a person entry. */
|
|
30
|
+
export declare function isPerson(result: PersonSearchResult | SearchMultiResult): result is PersonMultiResult;
|
|
31
|
+
export declare function isPerson(result: SearchMultiResult): result is PersonMultiResult;
|
|
32
|
+
export declare function isPerson(result: unknown): result is PersonMultiResult;
|