DefinitelyTyped/types/koa-cache-control/index.d.ts
Andy 954ee278de
Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00

25 lines
666 B
TypeScript

// 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;
}): Koa.Middleware;
declare namespace cacheControl {}
export = cacheControl;