Commit e87e988b authored by nanahira's avatar nanahira

make sure it builds over

parent 630985a4
......@@ -26,6 +26,6 @@ app.plugin(DatabasePlugin);
app.plugin(ExtrasInDev);
// Target plugin
app.plugin(TargetPlugin, {});
app.plugin(TargetPlugin, {} as any);
app.start();
......@@ -3,9 +3,10 @@ import { Context } from 'koishi';
import { PluginConfig, MyPlugin } from './plugin';
export * from './plugin';
export const name = 'fortune';
const plugin = new MyPlugin();
export const Config = plugin.schema;
export function apply(ctx: Context, config: PluginConfig) {
ctx.plugin(plugin, config);
export default class fortune {
static Config: any = plugin.schema;
constructor(ctx: Context, config: PluginConfig) {
ctx.plugin(plugin, config);
}
}
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