Skip to content

MikroOrmModule

@tsed/mikro-orm

Usage

typescript
import { MikroOrmModule } from "@tsed/mikro-orm";

See /packages/orm/mikro-orm/src/types/MikroOrmModule.ts.

Overview

ts
class MikroOrmModule implements OnDestroy, OnInit, AlterRunInContext {
    
    
    constructor(subscribers: EventSubscriber[]);
    $onInit(): Promise<void>;
    $onDestroy(): Promise<void>;
    $alterRunInContext(next: (...args: unknown[]) => unknown): () => unknown | Promise<() => unknown>;
    
    
}

Description

The ORM configuration, entity metadata. If you omit the options parameter, your CLI config will be used.

$onInit

ts
$onInit(): Promise<void>;

$onDestroy

ts
$onDestroy(): Promise<void>;

$alterRunInContext

ts
$alterRunInContext(next: (...args: unknown[]) => unknown): () => unknown | Promise<() => unknown>;

Released under the MIT License.