UNPKG

create-fetch-hooks

Version:

A simple and powerful custom React hook (useApi) that simplifies API requests with automatic loading and error states. Ideal for clean and maintainable data fetching in React components.

6 lines (5 loc) 267 B
export interface FormDataValueObject { [key: string]: any; } export type FormDataType = Record<string, any>; export declare function dataToFormData<T extends FormDataType>(data: T, removeNulls?: boolean, parentKey?: string | null, formData?: FormData): FormData;