trpc-sveltekit icon indicating copy to clipboard operation
trpc-sveltekit copied to clipboard

Update client.ts

Open asjir opened this issue 1 year ago • 1 comments
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.

asjir avatar Oct 24 '24 07:10 asjir

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Oct 24 '24 07:10 codesandbox[bot]