UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

13 lines (12 loc) 470 B
import type { SessionStoreAdapter } from '../types/interfaces'; export declare class SessionStore { sessionId: string; protected data: Record<string, unknown>; protected adapter: SessionStoreAdapter; private isModified; constructor(sessionId: string, data: Record<string, unknown>, adapter: SessionStoreAdapter); save(): Promise<void>; get<T = any>(path: string): T; set(path: string, value: any): void; remove(path: string): void; }