Commit a7f5c9c0 authored by nanahira's avatar nanahira

partial workarounds

parent 1ecf4cb4
...@@ -6,7 +6,7 @@ export { MyPluginConfig } from './config'; ...@@ -6,7 +6,7 @@ export { MyPluginConfig } from './config';
const plugin = new MyPlugin(); const plugin = new MyPlugin();
export default class SRVProRoomlist { export default class SRVProRoomlist {
static Config: any = plugin.schema; static Config: any = plugin.Config;
constructor(ctx: Context, config: MyPluginConfig) { constructor(ctx: Context, config: MyPluginConfig) {
ctx.plugin(plugin, config); ctx.plugin(plugin, config);
} }
......
...@@ -6,7 +6,7 @@ export class MyPlugin { ...@@ -6,7 +6,7 @@ export class MyPlugin {
private config: MyPluginConfig; private config: MyPluginConfig;
private ctx: Context; private ctx: Context;
name = 'srvpro-roomlist-main'; name = 'srvpro-roomlist-main';
schema = MyPluginConfig; Config = MyPluginConfig as any;
apply(ctx: Context, config: MyPluginConfig) { apply(ctx: Context, config: MyPluginConfig) {
this.ctx = ctx; this.ctx = ctx;
this.config = config; this.config = 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