/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/next-minimal-starter/src/server/trpc.ts
22 строки
660 B
Alex / KATT
chore: fix stackblitz output types (#6346)
30 дек 2024, 00:01
Не верифицирован
30 дек 2024, 00:01
1ad1a1e
Код
Авторство
О чём код?
/** * This is your entry point to setup the root configuration for tRPC on the server. * - `initTRPC` should only be used once per app. * - We export only the functionality that we use so we can enforce which base procedures should be used * * Learn how to create protected base procedures and other things below: * @see https://trpc.io/docs/v11/router * @see https://trpc.io/docs/v11/procedures */ import { initTRPC } from '@trpc/server'; import { transformer } from '../utils/transformer'; const t = initTRPC.create({ transformer, }); /** * Unprotected procedure **/ export const publicProcedure = t.procedure; export const router = t.router;