elysiajs / elysia-trpc

A plugin for Elysia that add support for using tRPC
MIT License
20 stars 17 forks source link

feat: Infer types in compile function #15

Open braden-w opened 6 months ago

braden-w commented 6 months ago

Currently, when using the compile function compile(schema), the result of running the check function still gives a type of unknown.

These additional types enhance the returned function so that validating input of type unknown will return an output matching the shape of the schema.