Commit da9b451f authored by nanahira's avatar nanahira

minor

parent d956eb80
......@@ -58,7 +58,7 @@ export function KoishiPlugin<T = any>(
>(originalClass: C) {
const newClass = class extends originalClass implements PluginClass {
static schema = (options.schema as Schema).type
? options.schema
? (options.schema as Schema<T>)
: RegisterSchema()(options.schema as ClassType<T>);
__ctx: Context;
__config: T;
......
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