# @types/koa-redis

> TypeScript definitions for koa-redis

Latest version **4.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/koa-redis
pnpm add @types/koa-redis
yarn add @types/koa-redis
bun add @types/koa-redis
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.5 |
| Published | 2023-11-07 |
| First published | 2017-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/koa-redis
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-redis
- npm.io page: https://npm.io/package/@types/koa-redis

## Dependencies (2)

- [@types/redis](https://npm.io/package/@types/redis.md) ^2.8.0
- [@types/koa-session](https://npm.io/package/@types/koa-session.md) *

## Recent versions

- 4.0.5 (latest) — 2023-11-07
- 4.0.2 (ts3.8) — 2021-12-09
- 4.0.1 (ts3.6) — 2021-07-08
- 4.0.0 (ts2.8) — 2019-11-27
- 3.0.3 (ts2.3) — 2019-09-09
- 3.0.1 (ts2.0) — 2017-07-25
- 4.0.4 — 2023-10-18
- 4.0.3 — 2023-09-14
- 3.0.2 — 2017-11-09
- 3.0.0 — 2017-04-27

## 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-redis/index.d.ts)
````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
 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
 * Dependencies: [@types/koa-session](https://npmjs.com/package/@types/koa-session), [@types/redis](https://npmjs.com/package/@types/redis)

# Credits
These definitions were written by [Nick Simmons](https://github.com/nsimmons), and [Scotland Stephenson](https://github.com/alsoscotland).

---
_Source: https://npm.io/package/@types/koa-redis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
