mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add a basic .d.ts file for TypescriptToLua
This commit is contained in:
parent
92ef5e35a7
commit
76065683ef
1 changed files with 19 additions and 0 deletions
19
docs/chatterino.d.ts
vendored
Normal file
19
docs/chatterino.d.ts
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
/** @noSelfInFile */
|
||||
|
||||
declare module c2 {
|
||||
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;
|
||||
}
|
Loading…
Reference in a new issue