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

2.0.5 • Public • Published

Installation

npm install --save @types/koa-cache-control

Summary

This package contains type definitions for koa-cache-control (https://github.com/DaMouse404/koa-cache-control).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cache-control.

index.d.ts

import * as Koa from "koa";

declare function cacheControl(options?: {
    private?: boolean;
    public?: boolean;
    noStore?: boolean;
    noCache?: boolean;
    noTransform?: boolean;
    mustRevalidate?: boolean;
    staleIfError?: number;
    staleWhileRevalidate?: number;
    maxAge?: number;
    sMaxAge?: number;
    proxyRevalidate?: boolean;
}): Koa.Middleware;

declare namespace cacheControl {}

export = cacheControl;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/koa

Credits

These definitions were written by Peter Safranek.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koa-cache-control

Weekly Downloads

1,998

Version

2.0.5

License

MIT

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • types