1 | // Type definitions for fresh 0.5
|
2 | // Project: https://github.com/jshttp/fresh#readme
|
3 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | export = fresh;
|
7 |
|
8 | declare function fresh(reqHeaders: fresh.Headers, resHeaders: fresh.Headers): boolean;
|
9 |
|
10 | declare namespace fresh {
|
11 | interface Headers {
|
12 | [header: string]: string | string[] | number | undefined;
|
13 | }
|
14 | }
|