feat: create PgStoreOptions interface
This commit is contained in:
@@ -39,6 +39,14 @@ const pool = new Pool({
|
|||||||
|
|
||||||
const PgSession = connectPgSimple(session);
|
const PgSession = connectPgSimple(session);
|
||||||
|
|
||||||
|
interface PgStoreOptions {
|
||||||
|
pool: pg.Pool;
|
||||||
|
tableName: string;
|
||||||
|
createTableIfMissing?: boolean;
|
||||||
|
pruneSessionInterval?: number;
|
||||||
|
errorLog?: (err: Error) => void;
|
||||||
|
}
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
session({
|
session({
|
||||||
store: new PgSession({
|
store: new PgSession({
|
||||||
|
|||||||
Reference in New Issue
Block a user