@siren-js/client
Version:
Siren API client library
10 lines (9 loc) • 476 B
TypeScript
import { NameValuePair } from './name-value-pair';
import { SerializeFn } from './serialize-fn';
/**
* Transforms an array of {@linkcode NameValuePair} objects into a
* [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
* object. If the value is a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File)
* object, its `name` is used.
*/
export declare const serializeUrlEncodedForm: SerializeFn<NameValuePair, URLSearchParams>;