# @types/koa-cookie

> TypeScript definitions for koa-cookie

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

## Install

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

## 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 | 1.0.3 |
| Published | 2023-11-07 |
| First published | 2020-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.0 (ts2.8) — 2020-01-21
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-14

## README

# Installation
> `npm install --save @types/koa-cookie`

# Summary
This package contains type definitions for koa-cookie (https://github.com/varunpal/koa-cookie).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cookie.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cookie/index.d.ts)
````ts
/* =================== USAGE ===================

    import cookie = require("koa-cookie");
    import Koa = require('koa');

    const app = new Koa();
    app.use(cookie());

 =============================================== */

import { Middleware } from "koa";

declare module "koa" {
    interface BaseContext {
        cookie: Record<string, any>;
    }
}

declare function cookie(): Middleware;

export = cookie;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)

# Credits
These definitions were written by [John Hou](https://github.com/dancon).

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