Skip to content

Commit

Permalink
Merge pull request #126 from AlanMorel/master
Browse files Browse the repository at this point in the history
Add TypeScript declarations for get, set, and destroy
  • Loading branch information
AlanMorel authored Feb 10, 2021
2 parents e92588e + 33df841 commit 809bf6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Store } from 'express-session';
import { SessionData, Store } from 'express-session';
import { Sequelize, SyncOptions } from 'sequelize';

interface DefaultFields {
Expand All @@ -23,6 +23,9 @@ declare class SequelizeStore extends Store {
sync(options?: SyncOptions): void
touch: (sid: string, data: any, callback?: (err: any) => void) => void
stopExpiringSessions: () => 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
}

interface SequelizeStoreConstructor {
Expand Down

0 comments on commit 809bf6e

Please sign in to comment.