update publish script
This commit is contained in:
@@ -10,11 +10,11 @@ import {
|
||||
PersonDetails,
|
||||
PersonMovieCredit,
|
||||
PersonTvShowCredit,
|
||||
PopularPersons,
|
||||
TaggedImages,
|
||||
Changes,
|
||||
PersonChangeValue,
|
||||
LanguageOption,
|
||||
PopularPeople,
|
||||
} from '../types';
|
||||
import { BaseEndpoint } from './base';
|
||||
|
||||
@@ -110,12 +110,7 @@ export class PeopleEndpoint extends BaseEndpoint {
|
||||
return await this.api.get<PersonDetails>(`${BASE_PERSON}/latest`);
|
||||
}
|
||||
|
||||
async popular(
|
||||
options?: LanguageOption & PageOption
|
||||
): Promise<PopularPersons> {
|
||||
return await this.api.get<PopularPersons>(
|
||||
`${BASE_PERSON}/popular`,
|
||||
options
|
||||
);
|
||||
async popular(options?: LanguageOption & PageOption): Promise<PopularPeople> {
|
||||
return await this.api.get<PopularPeople>(`${BASE_PERSON}/popular`, options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { CountryCode } from '../types';
|
||||
|
||||
export interface Gravatar {
|
||||
hash: string;
|
||||
}
|
||||
@@ -10,7 +12,7 @@ export interface AccountDetails {
|
||||
avatar: Avatar;
|
||||
id: number;
|
||||
include_adult: boolean;
|
||||
iso_3166_1: string;
|
||||
iso_3166_1: CountryCode;
|
||||
iso_639_1: string;
|
||||
name: string;
|
||||
username: string;
|
||||
|
||||
@@ -104,7 +104,7 @@ export type PersonChangeValue =
|
||||
};
|
||||
};
|
||||
|
||||
export interface PopularPersons {
|
||||
export interface PopularPeople {
|
||||
page: number;
|
||||
results: Person[];
|
||||
total_results: number;
|
||||
|
||||
Reference in New Issue
Block a user