Me tiraba este error:
Type '{ title: string; id: string; }[]' is not assignable to type 'Movie[]'.
Type '{ title: string; id: string; }' is not assignable to type 'Movie'.
Property 'contructor' is missing in type '{ title: string; id: string; }'.)
Lo logure solucionar colocardo de esta forma el artchivo movie.ts, como una interface, una clase:
export interface Movie{
title: String;
id: String;
year ?: String;
type ?: String;
}
Type '{ title: string; id: string; }[]' is not assignable to type 'Movie[]'.
Type '{ title: string; id: string; }' is not assignable to type 'Movie'.
Property 'contructor' is missing in type '{ title: string; id: string; }'.)
Lo logure solucionar colocardo de esta forma el artchivo movie.ts, como una interface, una clase:
export interface Movie{
title: String;
id: String;
year ?: String;
type ?: String;
}