npm.io
2.0.6 • Published 10 months ago

@types/koa-cache-control

Licence
MIT
Version
2.0.6
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 Koa = require("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: Fri, 24 Oct 2025 0441 GMT
  • Dependencies: @types/koa

Credits

These definitions were written by Peter Safranek.