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
Hi. I have started to use this library and I am trying to use the doc example in my project but I receive this error:
Type '{ properties: { email: { type: string; description: string; format: string; widget: string;
}; }; }' is not assignable to type 'ISchema'.
Types of property 'properties' are incompatible.
Type '{ email: { type: string; description: string; format: string; widget: string; }; }' is not assignable to type 'IProperties'.
Property 'email' is incompatible with index signature.
Type '{ type: string; description: string; format: string; widget: string; }' is not assignable to type 'ISchema'.
Types of property 'type' are incompatible.
Type 'string' is not assignable to type 'TSchemaPropertyType | undefined'.
Hi. I have started to use this library and I am trying to use the doc example in my project but I receive this error:
Type '{ properties: { email: { type: string; description: string; format: string; widget: string;
}; }; }' is not assignable to type 'ISchema'.
Types of property 'properties' are incompatible.
Type '{ email: { type: string; description: string; format: string; widget: string; }; }' is not assignable to type 'IProperties'.
Property 'email' is incompatible with index signature.
Type '{ type: string; description: string; format: string; widget: string; }' is not assignable to type 'ISchema'.
Types of property 'type' are incompatible.
Type 'string' is not assignable to type 'TSchemaPropertyType | undefined'.
The scheme used is the same of the example:
mySchema = { properties: { email: { type: "string", description: "email", format: "email", }, password: { type: "string", description: "Password", }, rememberMe: { type: "boolean", default: false, description: "Remember me", }, }, required: ["email", "password", "rememberMe"], };
The text was updated successfully, but these errors were encountered: