Skip to content

Commit 5ff4ad0

Browse files
authored
chore: minor typing and export fixes (#199)
1 parent ab36b05 commit 5ff4ad0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/runtime/src/client/crud-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ type ScalarCreatePayload<
693693
| MapModelFieldType<Schema, Model, Field>
694694
| (FieldIsArray<Schema, Model, Field> extends true
695695
? {
696-
set?: MapModelFieldType<Schema, Model, Field>[];
696+
set?: MapModelFieldType<Schema, Model, Field>;
697697
}
698698
: never);
699699

@@ -1203,7 +1203,7 @@ type NestedUpsertInput<
12031203
Field extends RelationFields<Schema, Model>,
12041204
> = OrArray<
12051205
{
1206-
where: WhereUniqueInput<Schema, Model>;
1206+
where: WhereUniqueInput<Schema, RelationFieldType<Schema, Model, Field>>;
12071207
create: CreateInput<
12081208
Schema,
12091209
RelationFieldType<Schema, Model, Field>,

packages/runtime/src/client/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ export type * from './crud-types';
44
export * from './errors';
55
export type { ClientOptions } from './options';
66
export { definePlugin } from './plugin';
7+
export type { ZenStackPromise } from './promise';
78
export type { ToKysely } from './query-builder';
9+
export { sql } from 'kysely';

0 commit comments

Comments
 (0)