Commit b178346e authored by nanahira's avatar nanahira

Migrate schema to Config

parent a26ee7d2
...@@ -7,7 +7,7 @@ export * from './config'; ...@@ -7,7 +7,7 @@ export * from './config';
export const name = 'ygocard'; export const name = 'ygocard';
const plugin = new MyPlugin(); const plugin = new MyPlugin();
export const schema = plugin.schema; export const Config = plugin.schema;
export function apply(ctx: Context, config: YGOCardConfig) { export function apply(ctx: Context, config: YGOCardConfig) {
ctx.plugin(plugin, config); ctx.plugin(plugin, config);
} }
...@@ -8,7 +8,7 @@ import { YGOProCard } from './YGOProCard'; ...@@ -8,7 +8,7 @@ import { YGOProCard } from './YGOProCard';
import { plainToClass } from 'class-transformer'; import { plainToClass } from 'class-transformer';
import path from 'path'; import path from 'path';
export type Config = Partial<YGOCardConfig>; export type PluginConfig = Partial<YGOCardConfig>;
export class MyPlugin { export class MyPlugin {
private config: YGOCardConfig; private config: YGOCardConfig;
......
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