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

1.0.3 • Public • Published

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

/* =================== 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

Credits

These definitions were written by John Hou.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koa-cookie

Weekly Downloads

13,815

Version

1.0.3

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • types