Skip to content
module@warp-drive/core/types/params

Type Alias QueryParamsSerializationOptions ​

ts
type QueryParamsSerializationOptions = object;

Defined in: warp-drive-packages/core/src/types/params.ts:20

Options for controlling how QueryParamsSource values are serialized into a URL query string.

Properties ​

arrayFormat? ​

ts
optional arrayFormat?: "bracket" | "indices" | "repeat" | "comma";

Defined in: warp-drive-packages/core/src/types/params.ts:29

How array values should be serialized:

  • 'bracket' - key[]=1&key[]=2
  • 'indices' - key[0]=1&key[1]=2
  • 'repeat' - key=1&key=2
  • 'comma' - key=1,2

Released under the MIT License.