npm.io
4.0.5 • Published 2 years ago

@types/koa-redis

Licence
MIT
Version
4.0.5
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/koa-redis

Summary

This package contains type definitions for koa-redis (https://github.com/koajs/koa-redis).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-redis.

index.d.ts

import { stores } from "koa-session";
import { ClientOpts } from "redis";

declare namespace redisStore {
    interface RedisOptions extends ClientOpts {
        duplicate?: boolean | undefined;
        client?: any;
    }

    interface RedisSessionStore extends stores {
        client: any;
    }
}

declare function redisStore(options: redisStore.RedisOptions): redisStore.RedisSessionStore;
export = redisStore;

Additional Details

Credits

These definitions were written by Nick Simmons, and Scotland Stephenson.