diff --git a/types/types.d.ts b/types/types.d.ts index 29f81ab..aef6c3b 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -84,6 +84,15 @@ declare namespace FastifySessionPlugin { } } +export class MemoryStore implements FastifySessionPlugin.SessionStore { + set(sessionId: string, session: any, callback: (err?: Error) => void): void; + get( + sessionId: string, + callback: (err?: Error, session?: any) => void + ): void; + destroy(sessionId: string, callback: (err?: Error) => void): void; +} + declare const FastifySessionPlugin: FastifyPlugin; export default FastifySessionPlugin;