added keywords endpoint and types
This commit is contained in:
@@ -11,6 +11,7 @@ export * from './discover';
|
||||
export * from './review';
|
||||
export * from './trending';
|
||||
export * from './find';
|
||||
export * from './keywords';
|
||||
|
||||
export interface AuthorDetails {
|
||||
name: string;
|
||||
|
||||
19
src/types/keywords.ts
Normal file
19
src/types/keywords.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ParsedUrlQueryInput } from 'querystring';
|
||||
import { Movie } from '.';
|
||||
|
||||
export interface KeywordsOptions extends ParsedUrlQueryInput {
|
||||
include_adult?: boolean;
|
||||
language?: string;
|
||||
}
|
||||
|
||||
export interface BelongingMovies{
|
||||
page: number;
|
||||
results: Movie[];
|
||||
total_results: number;
|
||||
total_pages: number;
|
||||
}
|
||||
|
||||
export interface Keyword{
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user