sequelize-sscce icon indicating copy to clipboard operation
sequelize-sscce copied to clipboard

Incorrect return type of Model.create

Open shwao opened this issue 4 years ago • 1 comments

The return type of Model.create is void if the option ignoreDuplicates is true or returning is false.

https://github.com/sequelize/sequelize/blob/56bb1d6ef9827f604d7bcef945abb7e213f2322d/types/lib/model.d.ts#L1982

But the method actually returns an instance.

shwao avatar Aug 29 '21 17:08 shwao

I force pushed to trigger the checks.

shwao avatar Oct 27 '21 18:10 shwao