typeorm
Version:
Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
12 lines (11 loc) • 464 B
TypeScript
import type { EntityMetadata } from "../../metadata/EntityMetadata";
import type { ObjectLiteral } from "../../common/ObjectLiteral";
/**
* Transforms raw document into entity object.
* Entity is constructed based on its entity metadata.
*/
export declare class DocumentToEntityTransformer {
private readonly enableRelationIdValues;
constructor(enableRelationIdValues?: boolean);
transform(document: ObjectLiteral, metadata: EntityMetadata): any;
}