UNPKG

450 BTypeScriptView Raw
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
6export = fresh;
7
8declare function fresh(reqHeaders: fresh.Headers, resHeaders: fresh.Headers): boolean;
9
10declare namespace fresh {
11 interface Headers {
12 [header: string]: string | string[] | number | undefined;
13 }
14}