Is your feature request related to a problem? Please describe.
Yes. I'm trying to use typeboxResolver with ElysiaJS to share a schema between client and server. This almost works, except Elysia defines extra types like Files which I want to use. Specifically, Elysia defines it as _sinclair_typebox.TTransform<_sinclair_typebox.TUnsafe<File[]>, File[]>.
Describe the solution you'd like
Somewhere in @hookform/resolvers there's this big switch case:
Is your feature request related to a problem? Please describe.
Yes. I'm trying to use
typeboxResolver
with ElysiaJS to share a schema between client and server. This almost works, except Elysia defines extra types likeFiles
which I want to use. Specifically, Elysia defines it as_sinclair_typebox.TTransform<_sinclair_typebox.TUnsafe<File[]>, File[]>
.Describe the solution you'd like
Somewhere in
@hookform/resolvers
there's this big switch case:I'm hitting the end there. Please provide an injection point somewhere in there so I can add support for "Files" manually.
Describe alternatives you've considered
I'm really not sure how else I can solve this. I can mangle the type as
Any
I guess but that'd be rather unfortunate.Additional context
Here's the code I'm trying:
Where
t
is mostly just a re-export of sinclair/typebox'sType
with a few extensions.