Spaces:
Sleeping

teamta / src /interfaces /commons /IPostRequest.ts
lamsaoganh's picture
Upload 62 files
1305386 verified
Raw History Blame Contribute Delete
364 Bytes
export interface IPostRequestParams {
url: string;
body?: any; // dữ liệu gửi kèm (JSON, FormData, v.v.)
params?: Record<string, any>;
headers?: Record<string, string>;
timeout?: number;
responseType?: "json" | "blob" | "text" | "arraybuffer";
}
export interface IPostRequest {
post<T>(options: IPostRequestParams): Promise<T>;
}