Commit 2016240f authored by nanahira's avatar nanahira

fix

parent 3646b6cd
import 'source-map-support/register'; import 'source-map-support/register';
import { DefineSchema, RegisterSchema } from 'schemastery-gen'; import { DefineSchema, RegisterSchema, schemaFromClass } from 'schemastery-gen';
import { Schema } from 'koishi'; import { Schema } from 'koishi';
@RegisterSchema() @RegisterSchema()
...@@ -49,4 +49,4 @@ export class PicSourceConfig implements PicSourceInfo { ...@@ -49,4 +49,4 @@ export class PicSourceConfig implements PicSourceInfo {
} }
} }
export const PicSourceSchema = (PicSourceConfig as unknown) as Schema<PicSourceInfo>; export const PicSourceSchema = schemaFromClass(PicSourceConfig);
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