/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/soa/server-lib/index.ts
24 строки
461 B
Alex / KATT
chore(www): bump docusaurus (#6051)
27 сен 2024, 17:12
Не верифицирован
27 сен 2024, 17:12
f8e8d17
Код
Авторство
О чём код?
import { initTRPC } from '@trpc/server'; type Context = { foo?: 'bar'; }; const t = initTRPC.context<Context>().create(); /** * Create a router * @see https://trpc.io/docs/v11/router */ export const router = t.router; /** * Create an unprotected procedure * @see https://trpc.io/docs/v11/procedures **/ export const publicProcedure = t.procedure; /** * @see https://trpc.io/docs/v11/merging-routers */ export const mergeRouters = t.mergeRouters;