UNPKG
create-t3-app-fork
Version:
latest (1.0.10)
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Create web application with the t3 stack
github.com/nexxeln/create-t3-app
nexxeln/create-t3-app
create-t3-app-fork
/
template
/
addons
/
trpc
/
utils.ts
11 lines
(8 loc)
•
300 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// src/utils/trpc.ts
import
type
{
AppRouter
}
from
"../server/router"
;
import
{ createReactQueryHooks }
from
"@trpc/react"
;
export
const
trpc = createReactQueryHooks<
AppRouter
>();
/** * Check out tRPC docs for Inference Helpers * https://trpc.io/docs/infer-types#inference-helpers */