@types/append-query
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/append-query

Summary

This package contains type definitions for append-query (https://github.com/lakenen/node-append-query).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/append-query.

index.d.ts

declare namespace appendQuery {
    interface Query {
        [index: string]: string | null;
    }

    interface Options {
        /**
         * whether or not to encode appended passed params using `encodeURIComponent`.
         * Default: `true`.
         */
        encodeComponents?: boolean | undefined;
        /**
         * whether or not to remove params for `null` properties in the query object.
         * Default: `false` (properties will be preserved with no value).
         */
        removeNull?: boolean | undefined;
    }
}

/**
 * @param url a string URL to append to
 * @param query a string or object containing query params to append
 */
declare function appendQuery(url: string, query: string | appendQuery.Query, options?: appendQuery.Options): string;

export = appendQuery;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Florian Keller.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.34,657ts5.7
2.0.34,657ts5.6
2.0.34,657latest
2.0.34,657ts4.5
2.0.34,657ts4.6
2.0.34,657ts4.7
2.0.34,657ts4.8
2.0.34,657ts4.9
2.0.34,657ts5.0
2.0.34,657ts5.1
2.0.34,657ts5.2
2.0.34,657ts5.3
2.0.34,657ts5.4
2.0.34,657ts5.5
2.0.34,657ts5.8
2.0.11,557ts3.6
2.0.11,557ts3.7
2.0.11,557ts3.8
2.0.11,557ts3.9
2.0.11,557ts4.0
2.0.11,557ts4.1
2.0.11,557ts4.2
2.0.11,557ts4.3
2.0.11,557ts4.4
2.0.0165ts2.0
2.0.0165ts2.1
2.0.0165ts2.2
2.0.0165ts2.3
2.0.0165ts2.4
2.0.0165ts2.5
2.0.0165ts2.6
2.0.0165ts2.7
2.0.0165ts2.8
2.0.0165ts2.9
2.0.0165ts3.0
2.0.0165ts3.1
2.0.0165ts3.2
2.0.0165ts3.3
2.0.0165ts3.4
2.0.0165ts3.5

Version History

VersionDownloads (Last 7 Days)Published
2.0.34,657
2.0.20
2.0.11,557
2.0.0165

Package Sidebar

Install

npm i @types/append-query

Weekly Downloads

6,379

Version

2.0.3

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • types