Open simonireilly opened 2 years ago
Currently the type for ajv is inferred, from the type of the object.
This object is inferred from the JSONSchema type. It looks as below:
Ajv.compile<JSONSchemaType<FromSchema<typeof schema>>>(schema)
This double inference might not be necessary, since the schema type is already know.
Investigate if:
Ajv.compile(schema)
Returns the expected type from validation, without supplying a generic
Currently the type for ajv is inferred, from the type of the object.
This object is inferred from the JSONSchema type. It looks as below:
This double inference might not be necessary, since the schema type is already know.
Investigate if:
Returns the expected type from validation, without supplying a generic