mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 21:13:14 +08:00
24 lines
639 B
TypeScript
24 lines
639 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
|
|
|
|
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;
|