kobp
Version:
Koa Boilerplate with MikroORM
20 lines (19 loc) • 468 B
TypeScript
import type { MikroORM, EntityManager } from '@mikro-orm/core';
/**
* Exported so that it can be augmented.
*/
export interface ORMDepdencyInjection {
orm: MikroORM;
em: EntityManager;
}
/**
* Use this DI to resolve for `orm` or `em`.
*/
export declare const DI: ORMDepdencyInjection;
/**
* Will be used privately. You should never call this method.
*
* @param orm
* @returns
*/
export declare const createDI: (orm: MikroORM) => ORMDepdencyInjection;