@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-link-header

Weekly Downloads

113,715

Version

2.0.3

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • types