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
+1
View File
@@ -38,6 +38,7 @@
- Dev: Mini refactor of `TwitchAccount`. (#6182)
- Dev: Refactored away some `getApp` usages in `WindowManager`. (#6194)
- Dev: Simplified string literals to be a re-export of Qt functions. (#6175)
- Dev: Fixed incorrect lua generation of `c2.HTTPRequest.create` for typescript plugins. (#6190)
## 2.5.3
+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;