Created
January 4, 2016 00:27
-
-
Save PaulBGD/9547f07d14fd31faf44c to your computer and use it in GitHub Desktop.
TypeScript definition for the NPM module connect-smart-redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../express-session/express-session.d.ts" /> | |
declare module 'connect-smart-redis' { | |
import Session = require('express-session'); | |
module s { | |
interface SmartRedisOptions { | |
ttl: number; | |
client: any; | |
prefix?: string; | |
lockExpiry?: number; | |
retryTime?: number; | |
deleteExpiry?: number; | |
} | |
interface SmartRedis extends Session.Store { | |
new (options: SmartRedisOptions): Session.Store; | |
} | |
} | |
let e: s.SmartRedis; | |
export = e; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment