interface QueryAddonOptions {
    serialize?: (query: Record<string, unknown>, url: string) => string;
}

Properties

Properties

serialize?: (query: Record<string, unknown>, url: string) => string

serializer for the query params. given the query params and the url, it should return the serialized url with the query params added

URLSearchParams-based serializer, preserving all existing query params

`serialize({ a: 123, b: 'hello' }, 'https://example.com/api') => 'https://example.com/api?a=123&b=hello'`