Commit 2c162d9c authored by nanahira's avatar nanahira

fix type again

parent 28902625
...@@ -11,6 +11,7 @@ import { ...@@ -11,6 +11,7 @@ import {
Provide, Provide,
LifecycleEvents, LifecycleEvents,
StarterPlugin, StarterPlugin,
PluginSchema,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Connection, ConnectionOptions } from 'typeorm'; import { Connection, ConnectionOptions } from 'typeorm';
import { Context } from 'koishi'; import { Context } from 'koishi';
...@@ -31,10 +32,11 @@ declare module 'koishi' { ...@@ -31,10 +32,11 @@ declare module 'koishi' {
} }
} }
@PluginSchema(TypeORMPluginConfig)
@Provide('typeorm', { immediate: true }) @Provide('typeorm', { immediate: true })
@DefinePlugin() @DefinePlugin()
export default class TypeORMPlugin export default class TypeORMPlugin
extends StarterPlugin(TypeORMPluginConfig) extends BasePlugin<ConnectionOptions, TypeORMPluginConfig>
implements LifecycleEvents implements LifecycleEvents
{ {
private registryMap = new Map<string, ConnectionEntry>(); private registryMap = new Map<string, ConnectionEntry>();
......
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