turkerdev / fastify-type-provider-zod

MIT License
303 stars 19 forks source link

What's the new preferred way of accessing `ResponseValidationError`? #94

Open erunion opened 3 weeks ago

erunion commented 3 weeks ago

With the 2.0.0 release ResponseValidationError is no longer exported from the main export, instead only from dist/ResponseValidationError:

import { ResponseValidationError } from 'fastify-type-provider-zod/dist/ResponseValidationError';

Is loading it from here the new preferred way of accessing this error class or can/should it be added back into the main export?

kibertoad commented 3 weeks ago

This is a bug. I'll restore it, thanks!

erunion commented 3 weeks ago

Brilliant, thank you!