@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.
10 lines (9 loc) • 552 B
TypeScript
import type { PropertyOptions } from './Property';
import type { AnyEntity } from '../typings';
export declare function PrimaryKey<T extends object>(options?: PrimaryKeyOptions<T>): (target: AnyEntity, propertyName: string) => any;
export declare function SerializedPrimaryKey<T extends object>(options?: SerializedPrimaryKeyOptions<T>): (target: AnyEntity, propertyName: string) => any;
export interface PrimaryKeyOptions<T> extends PropertyOptions<T> {
}
export interface SerializedPrimaryKeyOptions<T> extends PropertyOptions<T> {
type?: any;
}