Open
Description
Following this tutorial leads to a compilation error.
A user named Goldjee wrote a fix and posted it in a comment.
All you need to do is change:
declare module "http" {
interface IncomingMessage {
session: Session & {
authenticated: boolean
}
}
}
to
declare module 'http' {
interface IncomingMessage {
cookieHolder?: string;
session: Session & Partial<session.SessionData>;
}
}
Metadata
Metadata
Assignees
Labels
No labels