mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
25 lines
666 B
TypeScript
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;
|