Skip to content

Conversation

@190n
Copy link

@190n 190n commented Jan 7, 2026

Return SQL<boolean | null> instead of untyped SQL (except for comparisons that never return null which return SQL<boolean>), and mark and() and or() as never returning undefined if we know there is at least one defined condition. I added tests for the change to and()/or() since I messed up the type at first.

Fixes #1826

Return SQL<boolean | null> instead of untyped SQL (except for functions
that never return null), and make and() and or() not return undefined if
we can prove that there is at least one defined condition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]:

1 participant