update publish script

This commit is contained in:
Blake Joynes
2024-06-09 16:54:18 -04:00
parent 8df7fe2f2a
commit 1bf4063121
6 changed files with 18 additions and 94 deletions

View File

@@ -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);
}
}

View File

@@ -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;

View File

@@ -104,7 +104,7 @@ export type PersonChangeValue =
};
};
export interface PopularPersons {
export interface PopularPeople {
page: number;
results: Person[];
total_results: number;