@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.
6 lines (5 loc) • 339 B
TypeScript
import type { AnyEntity } from '../typings';
import type { PropertyOptions } from './Property';
export declare function Formula<T extends object>(formula: string | ((alias: string) => string), options?: FormulaOptions<T>): (target: AnyEntity, propertyName: string) => any;
export interface FormulaOptions<T> extends PropertyOptions<T> {
}