@types/parse-cache-control
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

/**
 * 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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-cache-control

Weekly Downloads

2,986

Version

1.0.4

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types