UpdateOptions is missing plain property #16969
Labels
pending-approval
Bug reports that have not been verified yet, or feature requests that have not been accepted yet
type: bug
Issue Creation Checklist
Bug Description
Attempting to update an entity, the UpdateOptions type does not include the plain option.
Reproducible Example
const updatedUser = await User.update( { name: 'Joe' }, { where: { id: 1 }, returning: true, plain: true } )
Here is the link to the SSCCE for this issue:
What do you expect to happen?
I expect to see plain on the type of UpdateOptions found here ->
(https://github.com/sequelize/sequelize/blob/main/packages/core/src/model.d.ts#L1244)
What is actually happening?
I am receiving this TS error ->
Environment
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: