-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.d.ts
More file actions
29 lines (25 loc) · 726 Bytes
/
index.d.ts
File metadata and controls
29 lines (25 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
declare namespace Express {
interface Response {
cacheControl?: ExpressCacheController.CacheControlOptions;
}
}
declare namespace ExpressCacheController {
interface CacheControlOptions {
maxAge?: number;
sMaxAge?: number;
private?: boolean;
public?: boolean;
noStore?: boolean;
noCache?: boolean;
noTransform?: boolean;
proxyRevalidate?: boolean;
mustRevalidate?: boolean;
staleIfError?: number;
staleWhileRevalidate?: number;
}
}
declare module 'express-cache-controller' {
import express = require('express');
function cacheControl(options?: any): express.RequestHandler;
export = cacheControl;
}