Skip to content

Instantly share code, notes, and snippets.

@PaulBGD
Created January 4, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulBGD/9547f07d14fd31faf44c to your computer and use it in GitHub Desktop.
Save PaulBGD/9547f07d14fd31faf44c to your computer and use it in GitHub Desktop.
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