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.