Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
wirekang committed Jun 13, 2023
1 parent fdcc0df commit e68bb57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/query-builder/update-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export class UpdateResult {
readonly numUpdatedRows: bigint
readonly numChangedRows?: bigint

constructor(numUpdatedRows: bigint, numChangedRows: bigint) {
constructor(numUpdatedRows: bigint, numChangedRows: bigint | undefined) {
this.numUpdatedRows = numUpdatedRows
this.numChangedRows = numChangedRows
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/type-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export type SimplifyResult<O> = O extends InsertResult
? O
: Simplify<O>

export type Simplify<T> = { [K in keyof T]: T[K] } & {}
export type Simplify<T> = DrainOuterGeneric<{ [K in keyof T]: T[K] } & {}>

/**
* Represents a database row whose column names and their types are unknown.
Expand Down

0 comments on commit e68bb57

Please sign in to comment.