im trying to disable typescript error in vscode from Nuxt, i try to use but its not working, i wanna make lines like this dont get any error in visual code:
<Reviews :reviewText="reviews.text" :reviewStars="reviews.rating"
:createdAt="formatDate(reviews.created_at)"
:author="reviews.client.name"
:profilePic="reviews.client.profilePic" class="mx-4">
</Reviews>
// get error cause i didint check
interface reviews {
text: string,
rating: Int32Array,
created_at: string,
client: client[]
}
interface client {
name: string;
profilePic: string;
}
gets:
Property 'profilePic' does not exist on type '{ name: string; profilePic: string; }[]'.ts(2339)
errors like "'field' is of type 'unknown'." are also comom for me.
This code above works well in the browser, but typescript in vscode and in the terminal claims errors, and its getting really annoying when i try to save lines for v-for or v-ifs, like use "field.relation1.relation2", i just wanna stop ts checking for examples like this, this is what i wanna do.