Template
1
0

feat: minor cleanup and doc update

This commit is contained in:
2025-04-21 00:27:34 +00:00
parent 3b9a5cb456
commit 22325285be
5 changed files with 38 additions and 40 deletions

View File

@@ -23,9 +23,11 @@ export class Procedure<TState extends State = State> {
* ```ts
* relay
* .method("user:create")
* .params({
* bar: z.number()
* })
* .params(
* z.object({
* bar: z.number()
* })
* )
* .handle(async ({ bar }) => {
* console.log(typeof bar); // => number
* });
@@ -46,7 +48,7 @@ export class Procedure<TState extends State = State> {
* ```ts
* const hasFooBar = action
* .make("hasFooBar")
* .response(z.object({ foobar: z.number() }))
* .output(z.object({ foobar: z.number() }))
* .handle(async () => {
* return {
* foobar: 1,