feat: update typescript version

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-12-26 01:21:06 +08:00
parent 72173b4778
commit 5ed61829e1
68 changed files with 234 additions and 161 deletions

View File

@@ -36,7 +36,7 @@ export class CommandMap {
if (exists) {
try {
return exists.executor(sender, '', command, Java.to(args))
} catch (error) {
} catch (error: any) {
console.ex(error)
}
return true
@@ -54,7 +54,7 @@ export class CommandMap {
try {
if (args.length !== index) { args.push('') }
return exists.tabCompleter(sender, '', command, Java.to(args))
} catch (error) {
} catch (error: any) {
console.ex(error)
}
}
@@ -76,4 +76,4 @@ export class SpringCommand {
setExecutor = (executor: CommandExec) => this.executor = executor
setTabCompleter = (tabCompleter: TabCompleter) => this.tabCompleter = tabCompleter
toString = () => `SpringCommand(${this.name})`
}
}