Skip to content

Commit

Permalink
Simplify ReturningMethod so that it avoids infinite type recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauri Svan committed Jul 13, 2022
1 parent 8f88965 commit 581ee8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions typings/objection/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,9 @@ declare namespace Objection {
<QB extends AnyQueryBuilder>(
this: QB,
column: string | string[]
): QB extends ArrayQueryBuilder<QB>
): QB extends NumberQueryBuilder<QB>
? ArrayQueryBuilder<QB>
: QB extends NumberQueryBuilder<QB>
? ArrayQueryBuilder<QB>
: SingleQueryBuilder<QB>;
: QB;
}

interface TimeoutOptions {
Expand Down

0 comments on commit 581ee8c

Please sign in to comment.