feathers-sequelize
feathers-sequelize copied to clipboard
Service .find() method return a wrong type (not paginated)
Steps to reproduce
- Create a feathers service
- Implement the find method of a service without adding the field paginated inside the parameters
- Check the return type of the service
Expected behavior
By default the feathers service return a paginated response if we don't specify the field paginated: false. So the returned type of a find method need to be paginated by default.
Actual behavior
When we use the find method of a service that extends SequelizeService<R, D, SP, PD> the return type is not like expected. We got an union of paginated type and not paginated type
System configuration
Tell us about the applicable parts of your setup.
Module versions: 7.0.3 (latest)
NodeJS version: v18.12.0
Operating System: Ubuntu 22.04.4
Browser Version: v120
React Native Version: N/A
Module Loader: N/A