Skip to content

Commit fa78749

Browse files
committed
Auto-add example.ts for new adapters
1 parent 7af6a66 commit fa78749

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import {initTRPC} from '@trpc/server';
2+
3+
import {wrap} from '..';
4+
5+
const schema = $FixMe;
6+
7+
const t = initTRPC.create();
8+
const appRouter = t.router({
9+
hello: t.procedure
10+
.input(wrap(schema))
11+
.query(({input}) => `Hello, ${input.name}!`),
12+
// ^? {name: string}
13+
});

0 commit comments

Comments
 (0)