UNPKG

@ashraflabs/use-api

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.

5 lines (4 loc) 291 B
/** * Type for objects that can be converted to FormData, supporting various data types. */ export type FormDataType = Record<string, string | number | boolean | Blob | File | Uint8Array | null | undefined | Array<string | number | boolean | Blob | File | Uint8Array | null | undefined>>;