UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

15 lines (13 loc) 721 B
import { TypeORMError } from "./TypeORMError"; /** * Thrown when ORM cannot get method parameter's type. * Basically, when reflect-metadata is not available or tsconfig is not properly setup. */ export class CannotReflectMethodParameterTypeError extends TypeORMError { constructor(target, methodName) { super(`Cannot get reflected type for a "${methodName}" method's parameter of "${target.name}" class. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application.`); } } //# sourceMappingURL=CannotReflectMethodParameterTypeError.js.map