Skip to content

Commit 2b1fb48

Browse files
fix: result instead of returns
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 2bb4404 commit 2b1fb48

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

blog/2026-03-16-custom-functions-in-typescript/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ResultSchema = j.strictObject({
4747

4848
export const myUpdate = defineUpdate({
4949
args: ArgsSchema,
50-
returns: ResultSchema,
50+
result: ResultSchema,
5151
handler: async ({ name }) => {
5252
// your logic here
5353
return { message: `Saved ${name}.` };

docs/build/functions/development/components/query.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn my_function() -> String {
2323
```typescript
2424
export const myFunction = defineQuery({
2525
args: Schema,
26-
returns: Schema,
26+
result: Schema,
2727
handler: ({ args }) => {
2828
// Your logic here
2929
return args;

docs/build/functions/development/components/update.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn my_function() -> String {
2323
```typescript
2424
export const myFunction = defineUpdate({
2525
args: Schema,
26-
returns: Schema,
26+
result: Schema,
2727
handler: async ({ args }) => {
2828
// Your logic here
2929
return args;

docs/guides/typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const Schema = j.strictObject({
162162

163163
export const helloWorld = defineUpdate({
164164
args: Schema,
165-
returns: Schema,
165+
result: Schema,
166166
handler: async ({ args }) => {
167167
// Your logic here
168168
return args;

0 commit comments

Comments
 (0)