Skip to content

Commit

Permalink
Update dprint
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov committed Jun 9, 2024
1 parent 471ed1b commit b1c8d15
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 55 deletions.
6 changes: 3 additions & 3 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"integration-tests/tests/prisma/*/drizzle"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.83.0.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.15.2.wasm"
"https://plugins.dprint.dev/typescript-0.91.1.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.1.wasm"
]
}
4 changes: 2 additions & 2 deletions drizzle-orm/src/query-builders/select.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export type AppendToResult<
TSelectedFields extends SelectedFields<Column, Table>,
TOldSelectMode extends SelectMode,
> = TOldSelectMode extends 'partial' ? TResult
: TOldSelectMode extends 'single' ?
: TOldSelectMode extends 'single' ?
& (TTableName extends string ? Record<TTableName, TResult> : TResult)
& (TJoinedName extends string ? Record<TJoinedName, TSelectedFields> : TSelectedFields)
: TResult & (TJoinedName extends string ? Record<TJoinedName, TSelectedFields> : TSelectedFields);
Expand All @@ -115,7 +115,7 @@ export type BuildSubquerySelection<
TSelection extends ColumnsSelection,
TNullability extends Record<string, JoinNullability>,
> = TSelection extends never ? any
:
:
& {
[Key in keyof TSelection]: TSelection[Key] extends SQL
? DrizzleTypeError<'You cannot reference this field without assigning it an alias first - use `.as(<alias>)`'>
Expand Down
6 changes: 3 additions & 3 deletions drizzle-orm/src/relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export type DBQueryConfig<
operators: { sql: Operators['sql'] },
) => Record<string, SQL.Aliased>);
}
& (TRelationType extends 'many' ?
& (TRelationType extends 'many' ?
& {
where?:
| SQL
Expand Down Expand Up @@ -323,7 +323,7 @@ export type BuildRelationResult<
TSchema,
FindTableByDBName<TSchema, TRel['referencedTableName']>,
Assume<TInclude[K], true | Record<string, unknown>>
> extends infer TResult ? TRel extends One ?
> extends infer TResult ? TRel extends One ?
| TResult
| (Equal<TRel['isNullable'], false> extends true ? null : never)
: TResult[]
Expand Down Expand Up @@ -361,7 +361,7 @@ export type BuildQueryResult<
keyof TTableConfig['columns'],
NonUndefinedKeysOnly<TFullSelection['columns']>
>
:
:
& {
[K in keyof TFullSelection['columns']]: Equal<
TFullSelection['columns'][K],
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export type InferModelFromColumns<
TInferMode extends 'select' | 'insert' = 'select',
TConfig extends { dbColumnNames: boolean } = { dbColumnNames: false },
> = Simplify<
TInferMode extends 'insert' ?
TInferMode extends 'insert' ?
& {
[
Key in keyof TColumns & string as RequiredKeyOnly<
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@typescript-eslint/parser": "^6.7.3",
"bun-types": "^1.0.3",
"concurrently": "^8.2.1",
"dprint": "^0.45.0",
"dprint": "^0.46.2",
"drizzle-kit": "^0.19.13",
"drizzle-orm": "workspace:./drizzle-orm/dist",
"drizzle-orm-old": "npm:drizzle-orm@^0.27.2",
Expand Down
90 changes: 45 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1c8d15

Please sign in to comment.