# @types/restify-cookies

> TypeScript definitions for restify-cookies

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

## Install

```sh
npm install @types/restify-cookies
pnpm add @types/restify-cookies
yarn add @types/restify-cookies
bun add @types/restify-cookies
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.11 |
| Published | 2023-11-07 |
| First published | 2017-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.11 (latest) — 2023-11-07
- 0.2.8 (ts3.7) — 2021-11-12
- 0.2.7 (ts3.6) — 2021-07-08
- 0.2.6 (ts3.2) — 2020-10-28
- 0.2.5 (ts3.1) — 2020-08-26
- 0.2.4 (ts2.8) — 2020-02-18
- 0.2.3 (ts2.2) — 2017-11-09
- 0.2.2 (ts2.0) — 2017-10-20
- 0.2.10 — 2023-10-18
- 0.2.9 — 2023-09-27
- 0.2.1 — 2017-10-17
- 0.2.0 — 2017-10-11

## README

# Installation
> `npm install --save @types/restify-cookies`

# Summary
This package contains type definitions for restify-cookies (https://github.com/nathschmidt/restify-cookies).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/restify-cookies.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/restify-cookies/index.d.ts)
````ts
import * as restify from "restify";

declare module "restify" {
    interface CookieOptions {
        encode?: ((input: string) => string) | undefined;
        maxAge?: number | undefined;
        domain?: string | undefined;
        path?: string | undefined;
        expires?: Date | undefined;
        httpOnly?: boolean | undefined;
        secure?: boolean | undefined;
        sameSite?: boolean | "lax" | "strict" | "none" | undefined;
    }

    interface Request {
        cookies: any;
    }

    interface Response {
        setCookie(key: string, val: string, options?: CookieOptions): void;
    }
}

export function parse(req: restify.Request, res: restify.Response, next: restify.Next): any;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/restify](https://npmjs.com/package/@types/restify)

# Credits
These definitions were written by [weekens](https://github.com/weekens).

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