simple-queries-react
Version:
Simple Queries React: Streamlined requests, powerful results. Transform your API calls into something simple, fast, and scalable with just a few lines of code.
14 lines (13 loc) • 419 B
TypeScript
export declare type PathMap = Record<string, string | number | null | undefined>;
export declare type AnyObject = Record<string, any>;
export declare type Headers = any;
export declare type ApiRequest = {
url?: string;
endpoint?: string;
pathRest?: AnyObject;
params?: AnyObject;
body?: AnyObject;
headers?: Headers;
errorFn?: (data: any) => void;
files?: File | File[];
};