@types/cookie-parser

  • Version 1.4.2
  • Published
  • 3.69 kB
  • 1 dependency
  • MIT license

Install

npm i @types/cookie-parser
yarn add @types/cookie-parser
pnpm add @types/cookie-parser

Overview

TypeScript definitions for cookie-parser

Index

Functions

function cookieParser

cookieParser: typeof cookieParser;

    function JSONCookie

    JSONCookie: (jsonCookie: string) => object | undefined;

      function JSONCookies

      JSONCookies: <T extends { [key: string]: string }>(
      jsonCookies: T
      ) => { [P in keyof T]: object };

        function signedCookie

        signedCookie: (cookie: string, secret: string | string[]) => string | false;

          function signedCookies

          signedCookies: <T extends { [key: string]: string }>(
          cookies: T,
          secret: string | string[]
          ) => { [P in keyof T]?: string | false };

            Interfaces

            interface CookieParseOptions

            interface CookieParseOptions {}

              method decode

              decode: (val: string) => string;

                Package Files (1)

                Dependencies (1)

                Dev Dependencies (0)

                No dev dependencies.

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/cookie-parser.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/cookie-parser)
                • HTML
                  <a href="https://www.jsdocs.io/package/@types/cookie-parser"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>