0.2.11 • Published 6 months ago

@types/restify-cookies v0.2.11

Weekly downloads
594
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for restify-cookies 0.2
// Project: https://github.com/nathschmidt/restify-cookies
// Definitions by: weekens <https://github.com/weekens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

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: Fri, 12 Nov 2021 22:31:50 GMT
  • Dependencies: @types/restify
  • Global values: none

Credits

These definitions were written by weekens.

0.2.11

6 months ago

0.2.10

7 months ago

0.2.9

7 months ago

0.2.8

2 years ago

0.2.7

3 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

6 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago