fix(plugins): TSTL static method generation (#6223)
This commit is contained in:
Vendored
+3
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user