UNPKG

@mikro-orm/core

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

7 lines (6 loc) 209 B
export interface AsyncContext<T> { getStore(): T | undefined; run<R>(store: T, callback: () => R): R; enterWith(store: T): void; } export declare function createAsyncContext<T>(): AsyncContext<T>;