You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the new "required: true" to use an Inner Join instead of a Left Join, it leads to a Typescript error:
Type '{ relation: string; scope: { where: { id: number; }; }; required: true; }'
is not assignable to type 'InclusionFilter'.
Object literal may only specify known properties, and 'required'
does not exist in type 'Inclusion'.
53 required: true
This also happens for nested relation operations such as:
Without global declaration merging or modifying the original Inclusion interface, I tried a couple of approaches for this, like defining a custom HasManyThroughFactory interface (e.g., #10192 (comment)).
Describe the bug
When trying to use the new "required: true" to use an Inner Join instead of a Left Join, it leads to a Typescript error:
This also happens for nested relation operations such as:
Logs
No response
Additional information
Reproduction
https://codesandbox.io/p/devbox/loopback-sequelize-types-24l36w
The text was updated successfully, but these errors were encountered: