I am currently facing an issue while attempting to showcase an array using Angular and TypeScript. The error message that I encounter is quite perplexing and I am unsure of its meaning.
Upon hovering my cursor over the Goal that is underlined in red, the following message is displayed:
Type '{ id: number; name: string; }[]' is missing the following properties from type 'Goal': id, name
Image:
Visual Studio indicates an error with Goal by displaying a red line and the following message:
Type '{ id: number; name: string; }[]' is missing the following properties from type 'Goal': id, name
Is there any developer who can guide me through the necessary steps to resolve this issue?