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
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:
// Decode added in TypeBox 0.30constdecoded=('Decode'inValue) ? Value.Decode(schema,converted) : converted
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.
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: 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.The text was updated successfully, but these errors were encountered: