fix(plugins): TSTL HTTPRequest.create generation (#6190)

This commit is contained in:
2547techno
2025-05-10 05:47:03 -04:00
committed by GitHub
parent 3e5b4a9d08
commit d39c1a1459
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -95,9 +95,10 @@ declare namespace c2 {
set_header(name: string, value: string): void;
execute(): void;
}
// might error
static create(method: HTTPMethod, url: string): HTTPRequest;
namespace HTTPRequest {
function create(method: HTTPMethod, url: string): HTTPRequest;
}
function log(level: LogLevel, ...data: any[]): void;