Commit d1b348f9 authored by nanahira's avatar nanahira

fix import

parent 551c52d5
export * from 'satori-decorators';
export * from './src/cosmotype-exports';
export * from './src/decorators';
export * from './src/def';
export * from './src/registrar';
......@@ -22,3 +22,8 @@ export const MixinModel = <K extends Keys<Tables>>(
const registrar = new ModelRegistrar(ctx.model);
registrar.mixinModel(tableName, classDict);
})();
export const InjectLogger = (name?: string) =>
koishiRegistrar
.pluginDecorators()
.InjectSystem((obj) => obj.__ctx.logger(name || obj.constructor.name));
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