7 lines
257 B
TypeScript
7 lines
257 B
TypeScript
//#region src/client/utils/http.d.ts
|
|
declare const http: {
|
|
get: <T extends object = object, R = any>(url: string, query?: T) => Promise<R>;
|
|
post: <T extends object = object, R = any>(url: string, data?: T) => Promise<R>;
|
|
};
|
|
//#endregion
|
|
export { http }; |