Kaltsoon / sequelize-cursor-pagination

➡️ Cursor-based pagination queries for Sequelize models
87 stars 27 forks source link

Allow chaining with a scope #61

Closed mat813 closed 2 years ago

mat813 commented 2 years ago

I use scopes a lot, and it helps a lot to be able to run this after a scope.

There is a as typeof Counter in the test, I think Sequelize's scope static method has a somewhat wrong type, but I am not sure.

Kaltsoon commented 2 years ago

Great idea! I made a tiny adjustment to avoid any breaking changes. This should be supported in v3.3.0. Please, open an issue if there are any issues with the scope support.