Reformat chatterino.d.ts

This commit is contained in:
Mm2PL 2023-02-28 23:26:30 +01:00
parent 7d2fd1eed5
commit 6e8af794fc
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

31
docs/chatterino.d.ts vendored
View file

@ -1,19 +1,22 @@
/** @noSelfInFile */
declare module c2 {
enum LogLevel {
Debug,
Info,
Warning,
Critical
}
class CommandContext {
words: String[];
channel_name: String;
}
enum LogLevel {
Debug,
Info,
Warning,
Critical,
}
class CommandContext {
words: String[];
channel_name: String;
}
function log(level: LogLevel, ...data: any[]): void;
function register_command(name: String, handler: (ctx: CommandContext)=>void): boolean;
function send_msg(channel: String, text: String): boolean;
function system_msg(channel: String, text: String): boolean;
function log(level: LogLevel, ...data: any[]): void;
function register_command(
name: String,
handler: (ctx: CommandContext) => void
): boolean;
function send_msg(channel: String, text: String): boolean;
function system_msg(channel: String, text: String): boolean;
}