Commit 75f73b6e authored by nanahira's avatar nanahira

fix def

parent ac899761
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
PutTemplate, PutTemplate,
Renderer, Renderer,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Logger, Template } from 'koishi'; import { I18n, Logger } from 'koishi';
import _ from 'lodash'; import _ from 'lodash';
import { DomainStateToText, getDomainsFromHypervisor } from './utils'; import { DomainStateToText, getDomainsFromHypervisor } from './utils';
export * from './config'; export * from './config';
...@@ -159,7 +159,7 @@ export default class LibVirtPlugin ...@@ -159,7 +159,7 @@ export default class LibVirtPlugin
} }
@Inject() @Inject()
private i18n: Template; private i18n: I18n;
private defineActionCommand(action: string, verb: string = action) { private defineActionCommand(action: string, verb: string = action) {
this.i18n.define('en', `commands.virt.${action}`, { this.i18n.define('en', `commands.virt.${action}`, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment