mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
18 lines
541 B
TypeScript
18 lines
541 B
TypeScript
// Type definitions for koa-redis 3.0
|
|
// Project: https://github.com/koajs/koa-redis
|
|
// Definitions by: Nick Simmons <https://github.com/nsimmons>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import { ClientOpts } from 'redis';
|
|
import { SessionStore } from 'koa-generic-session';
|
|
|
|
declare namespace redisStore {
|
|
interface RedisOptions extends ClientOpts {
|
|
duplicate?: boolean;
|
|
client?: any;
|
|
}
|
|
}
|
|
|
|
declare function redisStore(options: redisStore.RedisOptions): SessionStore;
|
|
export = redisStore;
|