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
+3 -5
View File
@@ -66,8 +66,8 @@ declare namespace c2 {
is_mod(): boolean;
is_vip(): boolean;
static by_name(name: string): null | Channel;
static by_twitch_id(id: string): null | Channel;
static by_name(this: void, name: string): null | Channel;
static by_twitch_id(this: void, id: string): null | Channel;
}
enum HTTPMethod {
@@ -95,10 +95,8 @@ declare namespace c2 {
set_header(name: string, value: string): void;
execute(): void;
}
namespace HTTPRequest {
function create(method: HTTPMethod, url: string): HTTPRequest;
static create(this: void, method: HTTPMethod, url: string): HTTPRequest;
}
function log(level: LogLevel, ...data: any[]): void;