1.3.5 • Published 6 months ago

@types/simple-query-string v1.3.5

Weekly downloads
18
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for simple-query-string 1.3
// Project: https://github.com/khalidsalomao/simple-query-string#readme
// Definitions by: Ciarán Ingle <https://github.com/inglec-arista>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.6

declare const qs: {
    version: string;

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

    stringify: <T>(
        obj: {
            /* tslint:disable-next-line 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: Fri, 28 May 2021 16:01:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ciarán Ingle.

1.3.5

6 months ago

1.3.4

7 months ago

1.3.3

7 months ago

1.3.2

8 months ago

1.3.1

3 years ago

1.3.0

5 years ago