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.

4 lines (3 loc) 212 B
import type { CheckConstraint } from '../typings'; export declare function Check<T>(options: CheckOptions<T>): (target: any, propertyName?: string) => any; export type CheckOptions<T = any> = CheckConstraint<T>;