trpc-sveltekit
trpc-sveltekit copied to clipboard
Update client.ts
trafficstars
For some reason, type inference on this file fails during build step. Which means that if this code is put in a monorepo and becomes part of a package, the client.d.ts file doesn't get generated, and when trpc is imported, the whole type inference gets lost.
This little (mostly) documentation fix will ensure that people who come to tRPC-sveltekit, and copy code from the docs, will never encounter this issue.