This commit is contained in:
2026-07-16 11:00:38 +08:00
parent 296c981377
commit 7801b7000c
4 changed files with 280 additions and 252 deletions

9
types/index.d.ts vendored
View File

@@ -127,6 +127,7 @@ export default HttpRequest;
* @property {string} res
*/
export declare class HttpResponse {
static [Symbol.hasInstance](instance: any): boolean;
/**
* @param {number} code
* @param {string} message
@@ -145,6 +146,14 @@ export declare class HttpResponse {
url: string;
/** @type {string} */
res: string;
toJSON: () => {
code: number;
message: string;
data: unknown;
url: string;
res: string;
};
toString: () => string;
#private;
}