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

1.3.5 • Public • Published

Installation

npm install --save @types/simple-query-string

Summary

This package contains type definitions for simple-query-string (https://github.com/khalidsalomao/simple-query-string#readme).

Details

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

index.d.ts

declare const qs: {
    version: string;

    parse: (
        str: string,
        delimeter?: string,
        eq?: string,
    ) => {
        [key: string]: string | string[] | null;
    };

    stringify: <T>(
        obj: {
            /* eslint-disable-next-line @typescript-eslint/ban-types */
            [key: string]: T extends Function ? never
                : T extends string | number | boolean | object | null | undefined ? T
                : never;
        },
        delimeter?: string,
        eq?: string,
    ) => string;
};

export = qs;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by Ciarán Ingle.

/@types/simple-query-string/

    Package Sidebar

    Install

    npm i @types/simple-query-string

    Weekly Downloads

    21

    Version

    1.3.5

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • types