```> cd lib && rm -rf build && npx tsc -p tsconfig...
# support-questions-legacy
n
Copy code
> cd lib && rm -rf build && npx tsc -p tsconfig.json && cd ../test/with-typescript && npx tsc -p tsconfig.json --noEmit && cd ../.. && npm run post-build

ts/framework/express/framework.ts:148:18 - error TS2430: Interface 'SessionRequest' incorrectly extends interface 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
  Types of property 'session' are incompatible.
    Type 'SessionContainerInterface | undefined' is not assignable to type 'Session & Partial<SessionData>'.
      Type 'undefined' is not assignable to type 'Session & Partial<SessionData>'.
        Type 'undefined' is not assignable to type 'Session'.

148 export interface SessionRequest extends Request {
                     ~~~~~~~~~~~~~~

ts/recipe/session/framework/express.ts:24:44 - error TS2345: Argument of type 'SessionRequest' is not assignable to parameter of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
  Types of property 'session' are incompatible.
    Type 'SessionContainerInterface | undefined' is not assignable to type 'Session & Partial<SessionData>'.
      Type 'undefined' is not assignable to type 'Session & Partial<SessionData>'.

24         const request = new ExpressRequest(req);
                                              ~~~


Found 2 errors.
4 Views