mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
add superjson to playground
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { initTRPC } from '@trpc/server'
|
||||
import superjson from 'superjson'
|
||||
import type { Context } from './context'
|
||||
|
||||
const t = initTRPC.context<Context>().create()
|
||||
const t = initTRPC.context<Context>().create({
|
||||
transformer: superjson
|
||||
})
|
||||
|
||||
/**
|
||||
* Create a router
|
||||
|
||||
Reference in New Issue
Block a user