wobsoriano / trpc-nuxt

End-to-end typesafe APIs in Nuxt applications.
trpc-nuxt.vercel.app
MIT License
687 stars 39 forks source link

createCaller does not exist on type '<TProcRouterRecord extends ProcedureRouterRecord> #112

Closed peterbud closed 1 year ago

peterbud commented 1 year ago

This library is working perfectly, however it seems that createCaller() is missing:

import { router } from '../trpc'
const caller = router.createCaller({})

Results: Property 'createCaller' does not exist on type '<TProcRouterRecord extends ProcedureRouterRecord>(procedures: TProcRouterRecord) => CreateRouterInner<RootConfig<{..}>>'.

Is there anything I'm missing? Maybe there is a working example of trpc-nuxt with a createCaller()?

peterbud commented 1 year ago

I have found #84 - closing