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