Squashed commit of the following:
commit5d38a76997Merge:7cccdb9f160e23Author: Blake <blakejoy@users.noreply.github.com> Date: Sat Apr 15 11:44:39 2023 -0400 Merge pull request #22 from blakejoy/feat/add_linting feat - add linting and prettier commitf160e2362cAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:44:00 2023 -0400 add pre commit hook commit0fd8317884Merge:bc91674d1e87baAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:41:28 2023 -0400 add husky commitbc91674c4bAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:39:24 2023 -0400 add husky commitd1e87ba7beAuthor: Blake <blakejoy@users.noreply.github.com> Date: Fri Apr 14 08:48:33 2023 -0400 Update .prettierrc commitd064d4d86fAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Fri Apr 14 03:09:39 2023 -0400 turn off linebreak rules commit06155bd323Author: Blake Joynes <blakejoynes@gmail.com> Date: Thu Apr 13 21:58:41 2023 -0400 add linting and prettier
This commit is contained in:
@@ -30,34 +30,44 @@ export class PeopleEndpoint extends BaseEndpoint {
|
||||
}
|
||||
|
||||
async movieCredits(id: number): Promise<PersonMovieCredit> {
|
||||
return await this.api.get<PersonMovieCredit>(`${BASE_PERSON}/${id}/movie_credits`);
|
||||
return await this.api.get<PersonMovieCredit>(
|
||||
`${BASE_PERSON}/${id}/movie_credits`
|
||||
);
|
||||
}
|
||||
|
||||
async tvShowCredits(id: number): Promise<PersonTvShowCredit> {
|
||||
return await this.api.get<PersonTvShowCredit>(`${BASE_PERSON}/${id}/tv_credits`);
|
||||
return await this.api.get<PersonTvShowCredit>(
|
||||
`${BASE_PERSON}/${id}/tv_credits`
|
||||
);
|
||||
}
|
||||
|
||||
async combinedCredits(id: number) : Promise<PersonCombinedCredits> {
|
||||
return await this.api.get<PersonCombinedCredits>(`${BASE_PERSON}/${id}/combined_credits`);
|
||||
async combinedCredits(id: number): Promise<PersonCombinedCredits> {
|
||||
return await this.api.get<PersonCombinedCredits>(
|
||||
`${BASE_PERSON}/${id}/combined_credits`
|
||||
);
|
||||
}
|
||||
|
||||
async externalId(id: number): Promise<ExternalIds>{
|
||||
async externalId(id: number): Promise<ExternalIds> {
|
||||
return await this.api.get<ExternalIds>(`${BASE_PERSON}/${id}/external_ids`);
|
||||
}
|
||||
|
||||
async images(id: number): Promise<{id: number, profiles: Image[]}>{
|
||||
return await this.api.get<{id: number, profiles: Image[]}>(`${BASE_PERSON}/${id}/images`);
|
||||
async images(id: number): Promise<{ id: number; profiles: Image[] }> {
|
||||
return await this.api.get<{ id: number; profiles: Image[] }>(
|
||||
`${BASE_PERSON}/${id}/images`
|
||||
);
|
||||
}
|
||||
|
||||
async taggedImages(id: number, options?: PageOption): Promise<TaggedImages>{
|
||||
return await this.api.get<TaggedImages>(`${BASE_PERSON}/${id}/tagged_images`, options);
|
||||
}
|
||||
|
||||
async translation(id: number) : Promise<PeopleTranslations>{
|
||||
return await this.api.get<PeopleTranslations>(`${BASE_PERSON}/${id}/translations`);
|
||||
async translation(id: number): Promise<PeopleTranslations> {
|
||||
return await this.api.get<PeopleTranslations>(
|
||||
`${BASE_PERSON}/${id}/translations`
|
||||
);
|
||||
}
|
||||
|
||||
async latest(): Promise<PersonDetail>{
|
||||
async latest(): Promise<PersonDetail> {
|
||||
return await this.api.get<PersonDetail>(`${BASE_PERSON}/latest`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user