1.0.4 • Published 6 months ago
@types/parse-cache-control v1.0.4
Installation
npm install --save @types/parse-cache-control
Summary
This package contains type definitions for parse-cache-control (https://github.com/roryf/parse-cache-control).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-cache-control.
index.d.ts
// Type definitions for parse-cache-control 1.0
// Project: https://github.com/roryf/parse-cache-control
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Simple function to parse Cache-Control headers.
* Taken from {@link https://github.com/hapijs/wreck|Wreck}.
*/
declare function parseCacheControl(field: string): parseCacheControl.Header | null;
declare namespace parseCacheControl {
interface Header {
'max-age'?: number | undefined;
'must-revalidate'?: boolean | undefined;
'no-cache'?: boolean | undefined;
'no-store'?: boolean | undefined;
private?: boolean | undefined;
}
}
export = parseCacheControl;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:19 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.