Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TypeScript definition for the NPM module connect-smart-redis
/// <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