apideck-libraries / better-ajv-errors

Human-friendly JSON Schema validation for APIs 👮‍♀️
MIT License
41 stars 6 forks source link

Fix ValidationError export #2

Closed jeffposnick closed 3 years ago

jeffposnick commented 3 years ago

'types/ValidationError' ends up being resolved incorrectly when consuming this package from npm, with moduleResolution: 'node' configured in the TypeScript compiler.

You could alternatively switch it to './types/ValidationError' (with the leading ./ making the path relative) but since ValidationError is already imported from that path earlier in the file, it doesn't seem necessary?

elsmr commented 3 years ago

Hi, thanks for the fix! Looks good

elsmr commented 3 years ago

Released in https://github.com/apideck-libraries/better-ajv-errors/releases/tag/v0.2.4