import session from 'express-session';
import MemoryStore from 'memorystore';
const mStore = MemoryStore(session);
This was working perfectly fine until the most recent update, where TypeScript throws an error:
dashboard/dashboard.ts:23:28 - error TS2345:
Argument of type 'typeof import("/node_modules/@types/express-session/index")' is not assignable to parameter of type 'typeof import("/node_modules/@types/express-session/index.d.ts")'.
Property 'default' is missing in type 'typeof import("/node_modules/@types/express-session/index")' but required in type 'typeof import("/node_modules/@types/express-session/index.d.ts")'.
23 const mStore = MemoryStore(session);
Downgrading back to 1.6.4 immediately resolves the issue again
I am currently using memory store like this:
This was working perfectly fine until the most recent update, where TypeScript throws an error:
Downgrading back to 1.6.4 immediately resolves the issue again