npm.io
1.3.6 • Published 1 year ago

@types/simple-query-string

Licence
MIT
Version
1.3.6
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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/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 0341 GMT
  • Dependencies: none

Credits

These definitions were written by Ciarán Ingle.