@types/qs

  • Version 6.9.6
  • Published
  • 6.52 kB
  • No dependencies
  • MIT license

Install

npm i @types/qs
yarn add @types/qs
pnpm add @types/qs

Overview

TypeScript definitions for qs

Index

Functions

function parse

parse: {
(str: string, options?: IParseOptions & { decoder?: never }): ParsedQs;
(str: string | Record<string, string>, options?: IParseOptions): {
[key: string]: unknown;
};
};

    function stringify

    stringify: (obj: any, options?: IStringifyOptions) => string;

      Interfaces

      interface IParseOptions

      interface IParseOptions {}

        property allowDots

        allowDots?: boolean;

          property allowPrototypes

          allowPrototypes?: boolean;

            property arrayLimit

            arrayLimit?: number;

              property charset

              charset?: 'utf-8' | 'iso-8859-1';

                property charsetSentinel

                charsetSentinel?: boolean;

                  property comma

                  comma?: boolean;

                    property decoder

                    decoder?: (
                    str: string,
                    defaultDecoder: defaultDecoder,
                    charset: string,
                    type: 'key' | 'value'
                    ) => any;

                      property delimiter

                      delimiter?: string | RegExp;

                        property depth

                        depth?: number | false;

                          property ignoreQueryPrefix

                          ignoreQueryPrefix?: boolean;

                            property interpretNumericEntities

                            interpretNumericEntities?: boolean;

                              property parameterLimit

                              parameterLimit?: number;

                                property parseArrays

                                parseArrays?: boolean;

                                  property plainObjects

                                  plainObjects?: boolean;

                                    property strictNullHandling

                                    strictNullHandling?: boolean;

                                      interface IStringifyOptions

                                      interface IStringifyOptions {}

                                        property addQueryPrefix

                                        addQueryPrefix?: boolean;

                                          property allowDots

                                          allowDots?: boolean;

                                            property arrayFormat

                                            arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';

                                              property charset

                                              charset?: 'utf-8' | 'iso-8859-1';

                                                property charsetSentinel

                                                charsetSentinel?: boolean;

                                                  property delimiter

                                                  delimiter?: string;

                                                    property encode

                                                    encode?: boolean;

                                                      property encoder

                                                      encoder?: (
                                                      str: any,
                                                      defaultEncoder: defaultEncoder,
                                                      charset: string,
                                                      type: 'key' | 'value'
                                                      ) => string;

                                                        property encodeValuesOnly

                                                        encodeValuesOnly?: boolean;

                                                          property filter

                                                          filter?: Array<string | number> | ((prefix: string, value: any) => any);

                                                            property format

                                                            format?: 'RFC1738' | 'RFC3986';

                                                              property indices

                                                              indices?: boolean;

                                                                property serializeDate

                                                                serializeDate?: (d: Date) => string;

                                                                  property skipNulls

                                                                  skipNulls?: boolean;

                                                                    property sort

                                                                    sort?: (a: any, b: any) => number;

                                                                      property strictNullHandling

                                                                      strictNullHandling?: boolean;

                                                                        interface ParsedQs

                                                                        interface ParsedQs {}

                                                                          index signature

                                                                          [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[];

                                                                            Type Aliases

                                                                            type defaultDecoder

                                                                            type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;

                                                                              type defaultEncoder

                                                                              type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;

                                                                                Package Files (1)

                                                                                Dependencies (0)

                                                                                No dependencies.

                                                                                Dev Dependencies (0)

                                                                                No dev dependencies.

                                                                                Peer Dependencies (0)

                                                                                No peer dependencies.

                                                                                Badge

                                                                                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/qs.

                                                                                • Markdown
                                                                                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/qs)
                                                                                • HTML
                                                                                  <a href="https://www.jsdocs.io/package/@types/qs"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>