Skip to content

Commit

Permalink
fix(types): ensure Query#clone returns this type
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Sep 23, 2022
1 parent 77dcf13 commit 298eb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/postgres/query.ts
Expand Up @@ -97,7 +97,7 @@ export abstract class Query<Props extends object | null = any> {
...clone.nodes[this.position],
props: this.cloneProps(),
}
return clone
return clone as this
}

/**
Expand Down

0 comments on commit 298eb84

Please sign in to comment.