Bug: TypeScript type inference allows null for !inner join results in supabase-js v2.48.1 #1368
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
In supabase-js v2.48.1, when using the
!inner
keyword for inner joins, the TypeScript type inference incorrectly includesnull
in the return type. This is logically incorrect since inner joins by definition cannot return null values. This regression was introduced in v2.48.1, as it worked correctly in v2.47.5.To Reproduce
Steps to reproduce the behavior:
Expected behavior
When using
!inner
for joins, the TypeScript type system should not includenull
in the return type, as inner joins by definition cannot return null values.System information
Additional context
The issue appears to be related to type definition changes between v2.47.5 and v2.48.1. In v2.47.5, the type definition correctly handled inner joins with the
inner: true
property, while v2.48.1 changed this toinnerJoin: true
and added additional type checks that incorrectly allow for null values.Previous working implementation (v2.47.5):
Current implementation with issue (v2.48.1):
This appears to be an unintended side effect of the type system changes in v2.48.1.
The text was updated successfully, but these errors were encountered: