@types/koa-redis

@types/koa-redis

npm i @types/koa-redis

Readme

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

// Type definitions for koa-redis 4.0
// Project: https://github.com/koajs/koa-redis
// Definitions by: Nick Simmons <https://github.com/nsimmons>
//                 Scotland Stephenson <https://github.com/alsoscotland>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

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.

Jump To