openapi-backend icon indicating copy to clipboard operation
openapi-backend copied to clipboard

Import issues with ajv module

Open DominicGBauer opened this issue 4 years ago • 0 comments

Hi I am experiencing the following issues when upgrading to 4+ in the validation.d.ts

node_modules/openapi-backend/validation.d.ts(1,8): error TS1259: Module '"/node_modules/ajv/lib/ajv"' can only be default-imported using the 'esModuleInterop' flag
[0] node_modules/openapi-backend/validation.d.ts(133,60): error TS2315: Type 'ValidateFunction' is not generic.
[0] node_modules/openapi-backend/validation.d.ts(163,60): error TS2315: Type 'ValidateFunction' is not generic.

It seems to be an issue with the way ajv is imported and not really sure about the ValidateFunction

DominicGBauer avatar Jul 23 '21 14:07 DominicGBauer