Kaltsoon / sequelize-cursor-pagination

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

Module '"sequelize"' has no exported member 'Attributes'. #57

Open ulknight opened 2 years ago

ulknight commented 2 years ago

Sorry for my english. :)

Project on TypeScript. On boostrap I catch an error:

node_modules/sequelize-cursor-pagination/types.d.ts:1:30 - error TS2305: Module '"sequelize"' has no exported member 'Attributes'.

1 import { Model, FindOptions, Attributes } from 'sequelize';

Sequelize - 6.11.0. Also I check it on latest 6.21.0 version. Sequelize-cursor-pagination - 3.0.2

Suggestion: Change Attributes -> ModelAttributes

Kaltsoon commented 2 years ago

Using Attributes seems to be the suggested way based on the docs. Did the docs mention that ModelAttributes is more suitable for this use case?

I have updated the development dependency version of sequelize to 6.21.4 and at least the latest build has no errors.