2.0.5 • Published 2 years ago

@types/koa-cache-control v2.0.5

Weekly downloads
966
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for koa-cache-control 2.0
// Project: https://github.com/DaMouse404/koa-cache-control
// Definitions by: Peter Safranek <https://github.com/pe8ter>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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, 10 Aug 2021 02:01:27 GMT
  • Dependencies: @types/koa
  • Global values: none

Credits

These definitions were written by Peter Safranek.

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

8 years ago

2.0.0

8 years ago