Skip to content

Commit b9bee5d

Browse files
authored
feat: delegate client typing (#117)
* feat: delegate client typing * update
1 parent 3f1af06 commit b9bee5d

File tree

15 files changed

+1625
-614
lines changed

15 files changed

+1625
-614
lines changed

.vscode/tasks.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"label": "Build all - watch",
21-
"command": "turbo watch build",
21+
"command": "pnpm watch",
2222
"type": "shell",
2323
"group": {
2424
"kind": "build"
@@ -50,6 +50,16 @@
5050
"color": "terminal.ansiMagenta",
5151
"id": "server-process"
5252
}
53+
},
54+
{
55+
"label": "Submit PR",
56+
"command": "pnpm pr",
57+
"type": "shell",
58+
"icon": {
59+
"color": "terminal.ansiWhite",
60+
"id": "server-process"
61+
},
62+
"problemMatcher": []
5363
}
5464
]
5565
}

packages/runtime/src/client/client-impl.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,13 @@ function createModelCrudHandler<Schema extends SchemaDef, Model extends GetModel
397397
if (typeof opHooks === 'function') {
398398
const _proceed = proceed;
399399
proceed = () =>
400-
opHooks({ client, model, operation, args, query: _proceed });
400+
opHooks({
401+
client,
402+
model,
403+
operation,
404+
args,
405+
query: _proceed,
406+
}) as Promise<unknown>;
401407
}
402408
}
403409
}

0 commit comments

Comments
 (0)