Is there currently a known issue with arktype + trpc compatibility?
This is with latest RC.12
This occurs when I do
.input(type(anything).assert)
. If I do something such as .input((i) => type(anything).assert(i))
, it works fine.
How on earth is it ending up with this
being undefined when it is run this way?2 Replies
aha, you can no longer pass an arktype assert around the way trpc docs show
Uncaught TypeError: Cannot read properties of undefined (reading 'traverse')
GitHub
Type
.assert
functions no longer usable as passed variables witho...Report a bug .assert functions from types are no longer usable as passed-around functions. They must be explicitly bound. This breaks trpc's arktype integration, where they describe using .inpu...