chill117 / express-mysql-session

A MySQL session store for the express framework in node
MIT License
313 stars 109 forks source link

TypeScript compatibility issue #78

Closed jbcbdse closed 6 years ago

jbcbdse commented 6 years ago
    let sessionStore = new MySQLStore(options);

    app.use(session({ 
        secret: "this is a terrible secret",  
        cookie: {},  
        resave: false,  
        saveUninitialized: false,  
        store: sessionStore 
    }));  

This code fails to compile and says that sessionStore is not compatible with session.Store or session.MemoryStore, that it is missing property 'all'

Is there a fix for this?

hnlinzhi19 commented 6 years ago

I have the same ;

chill117 commented 6 years ago

Fixed in latest release