@types/connect-pg-simple
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -8,3 +8,3 @@ // Type definitions for connect-pg-simple 7.0 | ||
import { RequestHandler } from "express"; | ||
import { Store, SessionData, SessionOptions } from "express-session"; | ||
import { SessionData, SessionOptions, Store } from "express-session"; | ||
import { Pool, PoolConfig } from "pg"; | ||
@@ -15,28 +15,28 @@ | ||
declare namespace connectPgSimple { | ||
class PGStore extends Store { | ||
constructor(options?: PGStoreOptions); | ||
close(): void; | ||
pruneSessions(callback?: (err: Error) => void): void; | ||
class PGStore extends Store { | ||
constructor(options?: PGStoreOptions); | ||
close(): void; | ||
pruneSessions(callback?: (err: Error) => void): void; | ||
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void; | ||
set(sid: string, session: SessionData, callback?: (err?: any) => void): void; | ||
destroy(sid: string, callback?: (err?: any) => void): void; | ||
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void; | ||
set(sid: string, session: SessionData, callback?: (err?: any) => void): void; | ||
destroy(sid: string, callback?: (err?: any) => void): void; | ||
touch(sid: string, session: SessionData, callback?: () => void): void; | ||
} | ||
interface PGStoreOptions { | ||
pool?: Pool | undefined; | ||
pgPromise?: object | undefined; // not typed to avoid dependency to "pg-promise" module (which includes its own types) | ||
conString?: string | undefined; | ||
conObject?: PoolConfig | undefined; | ||
ttl?: number | undefined; | ||
disableTouch?: boolean | undefined; | ||
createTableIfMissing?: boolean | undefined; | ||
schemaName?: string | undefined; | ||
tableName?: string | undefined; | ||
pruneSessionInterval?: false | number | undefined; | ||
errorLog?: ((...args: any[]) => void) | undefined; | ||
} | ||
touch(sid: string, session: SessionData, callback?: () => void): void; | ||
} | ||
interface PGStoreOptions { | ||
pool?: Pool | undefined; | ||
pgPromise?: object | undefined; // not typed to avoid dependency to "pg-promise" module (which includes its own types) | ||
conString?: string | undefined; | ||
conObject?: PoolConfig | undefined; | ||
ttl?: number | undefined; | ||
disableTouch?: boolean | undefined; | ||
createTableIfMissing?: boolean | undefined; | ||
schemaName?: string | undefined; | ||
tableName?: string | undefined; | ||
pruneSessionInterval?: false | number | undefined; | ||
errorLog?: ((...args: any[]) => void) | undefined; | ||
} | ||
} | ||
export = connectPgSimple; |
{ | ||
"name": "@types/connect-pg-simple", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "TypeScript definitions for connect-pg-simple", | ||
@@ -32,4 +32,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-pg-simple", | ||
}, | ||
"typesPublisherContentHash": "9b4c4a00f8ec6e5908c6f3a0970131772c846e938ffb469866983cad5a026b0b", | ||
"typeScriptVersion": "3.8" | ||
"typesPublisherContentHash": "b0281702cabe52f3036111ace425e5c5fd73f7024b067c0d0745ea210c767061", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -18,3 +18,3 @@ # Installation | ||
import { RequestHandler } from "express"; | ||
import { Store, SessionData, SessionOptions } from "express-session"; | ||
import { SessionData, SessionOptions, Store } from "express-session"; | ||
import { Pool, PoolConfig } from "pg"; | ||
@@ -25,26 +25,26 @@ | ||
declare namespace connectPgSimple { | ||
class PGStore extends Store { | ||
constructor(options?: PGStoreOptions); | ||
close(): void; | ||
pruneSessions(callback?: (err: Error) => void): void; | ||
class PGStore extends Store { | ||
constructor(options?: PGStoreOptions); | ||
close(): void; | ||
pruneSessions(callback?: (err: Error) => void): void; | ||
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void; | ||
set(sid: string, session: SessionData, callback?: (err?: any) => void): void; | ||
destroy(sid: string, callback?: (err?: any) => void): void; | ||
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void; | ||
set(sid: string, session: SessionData, callback?: (err?: any) => void): void; | ||
destroy(sid: string, callback?: (err?: any) => void): void; | ||
touch(sid: string, session: SessionData, callback?: () => void): void; | ||
} | ||
interface PGStoreOptions { | ||
pool?: Pool | undefined; | ||
pgPromise?: object | undefined; // not typed to avoid dependency to "pg-promise" module (which includes its own types) | ||
conString?: string | undefined; | ||
conObject?: PoolConfig | undefined; | ||
ttl?: number | undefined; | ||
disableTouch?: boolean | undefined; | ||
createTableIfMissing?: boolean | undefined; | ||
schemaName?: string | undefined; | ||
tableName?: string | undefined; | ||
pruneSessionInterval?: false | number | undefined; | ||
errorLog?: ((...args: any[]) => void) | undefined; | ||
} | ||
touch(sid: string, session: SessionData, callback?: () => void): void; | ||
} | ||
interface PGStoreOptions { | ||
pool?: Pool | undefined; | ||
pgPromise?: object | undefined; // not typed to avoid dependency to "pg-promise" module (which includes its own types) | ||
conString?: string | undefined; | ||
conObject?: PoolConfig | undefined; | ||
ttl?: number | undefined; | ||
disableTouch?: boolean | undefined; | ||
createTableIfMissing?: boolean | undefined; | ||
schemaName?: string | undefined; | ||
tableName?: string | undefined; | ||
pruneSessionInterval?: false | number | undefined; | ||
errorLog?: ((...args: any[]) => void) | undefined; | ||
} | ||
} | ||
@@ -57,3 +57,3 @@ | ||
### Additional Details | ||
* Last updated: Sat, 20 Nov 2021 15:01:11 GMT | ||
* Last updated: Mon, 04 Sep 2023 15:41:07 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/express-session](https://npmjs.com/package/@types/express-session), [@types/pg](https://npmjs.com/package/@types/pg) | ||
@@ -60,0 +60,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6660