feat: create PgStoreOptions interface

This commit is contained in:
amhsirak
2025-05-06 18:44:17 +05:30
parent a1986a9992
commit 48a3fcc5c7

View File

@@ -39,6 +39,14 @@ const pool = new Pool({
const PgSession = connectPgSimple(session);
interface PgStoreOptions {
pool: pg.Pool;
tableName: string;
createTableIfMissing?: boolean;
pruneSessionInterval?: number;
errorLog?: (err: Error) => void;
}
app.use(
session({
store: new PgSession({