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

2.0.3 • Public • Published

Installation

npm install --save @types/parse-link-header

Summary

This package contains type definitions for parse-link-header (https://github.com/thlorenz/parse-link-header).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-link-header.

index.d.ts

declare namespace parseLinkHeader {
    interface Link {
        url: string;
        rel: string;
        [queryParam: string]: string | undefined;
    }

    interface Links {
        [rel: string]: Link | undefined;
    }
}

declare function parseLinkHeader(linkHeader: string | null | undefined): parseLinkHeader.Links | null;
export = parseLinkHeader;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Nick Zelei.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    35,763
  • 2.0.2
    535
  • 2.0.1
    6,690
  • 2.0.0
    3,257
  • 1.0.1
    23,481
  • 1.0.0
    38,231

Package Sidebar

Install

npm i @types/parse-link-header

Weekly Downloads

107,957

Version

2.0.3

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • types