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

1.3.6 • 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.

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/no-unsafe-function-type */
            [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: Wed, 23 Oct 2024 03:36:41 GMT
  • Dependencies: none

Credits

These definitions were written by Ciarán Ingle.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/simple-query-string

Weekly Downloads

40

Version

1.3.6

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • types