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