Skip to content

Commit

Permalink
fix typings tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Nov 3, 2023
1 parent 37076a2 commit 3984e55
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/typings/test-d/merge.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,10 @@ async function testThenUpdate(
expectType<ExpressionBuilder<Database, 'person' | 'pet'>>(eb)
return eb.ref('pet.name')
})
expectError(
limitedBaseQuery.thenUpdateSet('last_name', (eb) => {
expectType<ExpressionBuilder<Database, 'person'>>(eb)
return eb.ref('person.first_name')
})
)
limitedBaseQuery.thenUpdateSet('last_name', (eb) => {
expectType<ExpressionBuilder<Database, 'person'>>(eb)
return eb.ref('person.first_name')
})

type ExpectedReturnType = WheneableMergeQueryBuilder<
Database,
Expand Down

0 comments on commit 3984e55

Please sign in to comment.