kysely
kysely copied to clipboard
Loose typechecking on innerJoin/leftJoin comparisons
This was a bit surprising, as it shows a type error correctly on where comparisons, see this simple example using branded types
https://kyse.link/Rbodk
(updated the reproduction with whereRef and where)
whereRef also has the same loose type issue. You used where which compares the column to a value "u.id".
Oh yeah, I always forget these two are separate, my bad, gonna update the example