This commit is contained in:
2026-08-24 18:00:15 +08:00
parent 7801b7000c
commit e2fe23e792
4 changed files with 37 additions and 24 deletions
+6
View File
@@ -154,6 +154,12 @@ export declare class HttpResponse {
res: string;
};
toString: () => string;
msg(fn?: (value: unknown) => unknown, isResp?: false): Promise<unknown>;
msg(fn?: (value: HttpResponse) => unknown, isResp: true): Promise<unknown>;
then(fn?: (value: unknown) => unknown, onrejected?: (reason: unknown) => unknown): Promise<unknown>;
resp(fn?: (value: HttpResponse) => unknown, onrejected?: (reason: unknown) => unknown): Promise<unknown>;
catch(fn: (reason: HttpResponse) => unknown): Promise<unknown>;
finally(fn?: () => void): Promise<unknown>;
#private;
}