Nuke Pluto and Mars

    @types/koa-redis
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.2 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/koa-redis

    DownloadsWeekly Downloads

    45,823

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    4.43 kB

    Total Files

    4

    Last publish

    Collaborators

    • types