feat: create PgStoreOptions interface
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user