@victorequena22/conneccion
Version:
Utilidades para mi uso que pongo a dispocion
15 lines (14 loc) • 761 B
TypeScript
import { setData } from "../Recursos";
export declare class ConexionBase {
clase: string;
state: string;
init: boolean;
getCache: (url: string, setData: setData<any>) => void;
setCache: (path: string, data: any) => void;
getProxi: (path: string) => Promise<any>;
getProxiCache: (path: string, setData: setData<any>, setError?: setData<any> | undefined) => Promise<void>;
get: (url: string, setData: setData<any>, setError?: setData<any> | undefined) => Promise<void>;
postProxi: (path?: string, obj?: {}, success?: (d: any) => void, error?: (d: any) => void) => void;
post: (url?: string, obj?: any, success?: (d: any) => void, error?: (d: any) => void) => void;
FormDataFotmat: (o: any) => FormData;
}