Skip to content

Commit 53bf171

Browse files
authored
docs: add JSDoc (#22)
1 parent 9bf9479 commit 53bf171

File tree

17 files changed

+784
-44
lines changed

17 files changed

+784
-44
lines changed

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- [x] Computed fields
5656
- [ ] Prisma client extension
5757
- [ ] Misc
58+
- [x] JSDoc for CRUD methods
5859
- [x] Cache validation schemas
5960
- [x] Compound ID
6061
- [ ] Cross field comparison

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import type { ToKysely } from './query-builder';
3636
import { ResultProcessor } from './result-processor';
3737

3838
/**
39-
* Creates a new ZenStack client instance.
39+
* ZenStack client.
4040
*/
4141
export const ZenStackClient = function <Schema extends SchemaDef>(
4242
this: any,
@@ -424,6 +424,15 @@ function createModelCrudHandler<
424424
);
425425
},
426426

427+
updateManyAndReturn: (args: unknown) => {
428+
return createPromise(
429+
'updateManyAndReturn',
430+
args,
431+
new UpdateOperationHandler(client, model, inputValidator),
432+
true
433+
);
434+
},
435+
427436
upsert: (args: unknown) => {
428437
return createPromise(
429438
'upsert',

packages/runtime/src/client/contract.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export type ClientContract<Schema extends SchemaDef> = {
6464

6565
/**
6666
* Pushes the schema to the database. For testing purposes only.
67+
* @private
6768
*/
6869
$pushSchema(): Promise<void>;
6970
} & {

0 commit comments

Comments
 (0)