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

0.2.11 • Public • Published

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

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

Credits

These definitions were written by weekens.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/restify-cookies

Weekly Downloads

779

Version

0.2.11

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types