mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Fix remaining lint errors (#19166)
This commit is contained in:
4
types/plugapi/index.d.ts
vendored
4
types/plugapi/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for plugapi 4.2
|
||||
// Project: https://www.npmjs.com/package/plugapi
|
||||
// Definitions by: Brice Theurillat <https://github.com/BNedry/>
|
||||
// Definitions by: Brice Theurillat <https://github.com/BNedry>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare namespace PlugAPI {
|
||||
interface PlugLogin {
|
||||
@@ -335,7 +335,7 @@ declare namespace PlugAPI {
|
||||
v: number;
|
||||
}
|
||||
|
||||
interface Command extends Event.Chat {
|
||||
interface Command extends Chat {
|
||||
command: string;
|
||||
args: string[];
|
||||
respond(...args: any[]): any;
|
||||
|
||||
@@ -16,7 +16,7 @@ new PlugAPI({
|
||||
if (data.type === "emote") {
|
||||
console.log(data.from + data.message);
|
||||
} else {
|
||||
console.log(data.from + "> " + data.message);
|
||||
console.log(`${data.from}> ${data.message}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user