mweibel / connect-session-sequelize

Sequelize SessionStore for Express/Connect
212 stars 72 forks source link

Property 'Store' does not exist on type - typescript support? #123

Closed kwegorek closed 3 years ago

kwegorek commented 3 years ago

I am trying to incorporate connect-session-sequelize into my typescript project. Is there a way to do it? For now, I am getting an error:

Property 'Store' does not exist on type '(options?: { pauseStream: boolean; } | undefined) => any

const SequelizeStore = sequelizeStore(session.Store);  <---- err here
const sessionStore = new SequelizeStore({
  db: db,
  table: "session",
});

Is this related to connect-session-sequelize or rather to my session middleware?

kwegorek commented 3 years ago

Sorry. I was indeed missing npm i --save-dev @types/express-session.