import Movie from './movie' ; class IMDb { endpoint : string ; constructor ( endpoint = 'https://www.imdb.com' ) { this . endpoint = endpoint ; } async getMovie ( id ) { return ( new Movie ( id ) ) . get ( this . endpoint ) ; } } export { IMDb , Movie } ;