You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the object to be allowed by the type. Ignoring the error will still allow the data to be created/updated as expected.
What is actually happening?
It will give a TypeScript error:
Argument of type '{ data: { experience: any[]; }; }' is not assignable to parameter of type 'NuxtStrapiData'.
Types of property 'data' are incompatible.
Type '{ myRepeteableComponent: any[]; }' is not assignable to type 'string | number | boolean | (string | number | boolean)[] | undefined'.
Object literal may only specify known properties, and 'myRepeteableComponent' does not exist in type '(string | number | boolean)[]'.
The text was updated successfully, but these errors were encountered:
Version
@nuxtjs/strapi: v0.3.6
nuxt: v2.15.8
Steps to reproduce
Consider this:
A component object may look like this:
The code may look like this:
What is Expected?
I expect the object to be allowed by the type. Ignoring the error will still allow the data to be created/updated as expected.
What is actually happening?
It will give a TypeScript error:
The text was updated successfully, but these errors were encountered: