Skip to main content
Version: v7.0.0

QueryStringifyOptionsType


Import
import { QueryStringifyOptionsType } from "@hyper-fetch/core"

Preview

type QueryStringifyOptionsType = {
arrayFormat?: bracket | index | comma | separator | bracket-separator | none;
arraySeparator?: string;
dateParser?: (value: QueryParamType) => string;
encode?: boolean;
objectParser?: (value: QueryParamType) => string;
skipEmptyString?: boolean;
skipNull?: boolean;
strict?: boolean;
}

Structure

QueryStringifyOptionsType
NameTypeDescription
arrayFormat
bracket | index | comma | separator | bracket-separator | none

Array encoding type

arraySeparator
string

Array format separator

encode
boolean

Encode keys and values

skipEmptyString
boolean

Skip keys with empty string

skipNull
boolean

Skip keys with null values

strict
boolean

Strict URI encoding

dateParser
(value: QueryParamType) => string

Parsing function for date type query param

objectParser
(value: QueryParamType) => string

Parsing function for object type query param

On this page