deepinfra
Version:
Official API wrapper for DeepInfra
13 lines (12 loc) • 473 B
TypeScript
import FormData from "form-data";
export declare const FormDataUtils: {
/**
* Prepare form data from the given data object
* @param data - The data object to be converted to form data.
* @param blobKeys - The keys of the data object that contain binary data.
* @returns A FormData object.
* @throws {Error} If the binary data is invalid.
*
*/
prepareFormData<T extends object>(data: T, blobKeys?: string[]): Promise<FormData>;
};