Open ehaynes99 opened 5 months ago
I'm not sure what eversion are you using? https://github.com/fastify/fastify-type-provider-typebox/blob/c92a5fb4fa01866f49c58989a2f01391e42337d3/package.json#L21 lists v0.32.
The peer dependency allows a range. E.g. an application could have 0.29
, and that would not compile because the StaticDecode
type would not exist. The minimum would have to be increased, as applications with >=0.30 <=0.32
would work, but those with >=0.26 <0.30
would not. I went ahead and made a PR with that in it, but wanted to point it out.
Prerequisites
🚀 Feature Proposal
Now that TypeBox supports transform types, it would be great if this library supported them as well.
Example
I made a branch that should work here: https://github.com/fastify/fastify-type-provider-typebox/compare/main...ehaynes99:fastify-type-provider-typebox:transform-types
However, this lib currently allows TypeBox versions down to 0.26, and transform types were only added in 0.30. I could work around it for the actual conversion like here:
but there's not a way to fix the types, because
StaticDecode
would not exist in those older versions. In order to merge this, the compatible version range would have to be updated.