fix(plugins): TSTL static method generation (#6223)

This commit is contained in:
2547techno
2025-05-24 08:04:54 -04:00
committed by GitHub
parent b78e1ed0a7
commit deed1061b5
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
- Dev: Mini refactor of `TwitchAccount`. (#6182) - Dev: Mini refactor of `TwitchAccount`. (#6182)
- Dev: Refactored away some `getApp` usages in `WindowManager`. (#6194) - Dev: Refactored away some `getApp` usages in `WindowManager`. (#6194)
- Dev: Simplified string literals to be a re-export of Qt functions. (#6175) - 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) - Dev: Fixed incorrect lua generation of static methods for typescript plugins. (#6190, #6223)
- Dev: Merged top/bottom and left/right notebook layouts. (#6215) - Dev: Merged top/bottom and left/right notebook layouts. (#6215)
## 2.5.3 ## 2.5.3
+3 -5
View File
@@ -66,8 +66,8 @@ declare namespace c2 {
is_mod(): boolean; is_mod(): boolean;
is_vip(): boolean; is_vip(): boolean;
static by_name(name: string): null | Channel; static by_name(this: void, name: string): null | Channel;
static by_twitch_id(id: string): null | Channel; static by_twitch_id(this: void, id: string): null | Channel;
} }
enum HTTPMethod { enum HTTPMethod {
@@ -95,10 +95,8 @@ declare namespace c2 {
set_header(name: string, value: string): void; set_header(name: string, value: string): void;
execute(): void; execute(): void;
}
namespace HTTPRequest { static create(this: void, method: HTTPMethod, url: string): HTTPRequest;
function create(method: HTTPMethod, url: string): HTTPRequest;
} }
function log(level: LogLevel, ...data: any[]): void; function log(level: LogLevel, ...data: any[]): void;