grantholle / moviedb-promise

Interact with themoviedb.org's api with Node... now in TypeScript!
Other
220 stars 49 forks source link

Tnterface Translation is diffent from API Reference #71

Closed CyberRim closed 1 year ago

CyberRim commented 1 year ago

package:"moviedb-promise": "^3.4.0"

//node_modules/moviedb-promise/dist/request-types.d.ts
export interface Translation {
    iso_3166_1?: string;
    iso_639_1?: string;
    name?: string;
    english_name?: string;
    data?: {
        title?: string;
        overview?: string;
        homepage?: string;
    };
}

It should be translation.data.name rather than translation.data.title

image

image

grantholle commented 1 year ago

Thanks for noticing. 3.4.1 has the updated type