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.

9 lines (8 loc) 418 B
import type { EntityDTO, EntityKey } from '../typings'; export declare class EntityTransformer { static toObject<Entity extends object, Ignored extends EntityKey<Entity> = never>(entity: Entity, ignoreFields?: Ignored[], raw?: boolean): Omit<EntityDTO<Entity>, Ignored>; private static propertyName; private static processProperty; private static processEntity; private static processCollection; }