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 have a typescript project and am following instructions to add "date-time" as follows:
let ajv = new Ajv({ allErrors: true});
addFormats(ajv, ["date-time"]);
but getting the following error for "ajv", the first argument to addFormats: Type 'Ajv' is missing the following properties from type 'Ajv': opts, logger, scope, schemas, and 17 more.
I have a typescript project and am following instructions to add "date-time" as follows:
but getting the following error for "ajv", the first argument to addFormats:
Type 'Ajv' is missing the following properties from type 'Ajv': opts, logger, scope, schemas, and 17 more.
My tsconfig is as follows:
The only way I was able to get it working was by initializing ajv as 'any' type, which doesn't seem ideal. Any ideas as to what could be the issue?
The text was updated successfully, but these errors were encountered: