QueryStringifyOptionsType
Import
import { QueryStringifyOptionsType } from "@hyper-fetch/core"
Source
Package
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
| Name | Type | Description |
|---|---|---|
| arrayFormat | | Array encoding type |
| arraySeparator | | Array format separator |
| encode | | Encode keys and values |
| skipEmptyString | | Skip keys with empty string |
| skipNull | | Skip keys with null values |
| strict | | Strict URI encoding |
| dateParser | | Parsing function for date type query param |
| objectParser | | Parsing function for object type query param |