Numbers Probably Matter

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

    2.0.0 • 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

    // Type definitions for parse-link-header 2.0
    // Project: https://github.com/thlorenz/parse-link-header
    // Definitions by: Nick Zelei <https://github.com/nickzelei>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    declare namespace parseLinkHeader {
        interface Link {
            url: string;
            rel: string;
            [queryParam: string]: string;
        }
    
        interface Links {
            [rel: string]: Link;
        }
    }
    
    declare function parseLinkHeader(linkHeader: string | null | undefined): parseLinkHeader.Links | null;
    export = parseLinkHeader;

    Additional Details

    • Last updated: Sat, 12 Mar 2022 23:01:44 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Nick Zelei.

    Keywords

    none

    Install

    npm i @types/parse-link-header

    DownloadsWeekly Downloads

    69,047

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.76 kB

    Total Files

    4

    Last publish

    Collaborators

    • types