8 lines
203 B
TypeScript
8 lines
203 B
TypeScript
import type { Context } from './context';
|
|
import { initTRPC } from '@trpc/server';
|
|
import SuperJSON from 'superjson';
|
|
|
|
export const t = initTRPC.context<Context>().create({
|
|
transformer: SuperJSON,
|
|
});
|