Commit 2c162d9c authored by nanahira's avatar nanahira

fix type again

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