Why is eb inferred as any in this update query?
I'm trying to do an update from values inserted in a CTE. But the update's set operation doesn't seem to properly infer a type for the
eb
variable in its expression builder. If I change the where clause to an eb callback, it does properly infer the type, which makes me concerned I'm not doing this correctly.
Am I doing something wrong? Is this a minor typing bug?
Here's the code example:
https://kyse.link/?p=s&i=zmq2zEhTRnuYMyHNhhyc2 Replies
Well probably because you've cast the kysely instance to
Kysely<any>
Yup, it's for use in a migration, which I think are supposed to do that, right?
When I do
after that, it does infer eb as: