Skip to content

Commit

Permalink
fix(core): type global entityRepository option weakly
Browse files Browse the repository at this point in the history
It causes `TS2589: Type instantiation is excessively deep and possibly infinite` otherwise
if we provide a class with type argument, probably some TS limitation.
  • Loading branch information
B4nan committed Mar 9, 2022
1 parent 7b3a6b4 commit 3faf8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export interface MikroORMOptions<D extends IDatabaseDriver = IDatabaseDriver> ex
loadStrategy: LoadStrategy;
populateWhere: PopulateHint;
flushMode: FlushMode;
entityRepository?: Constructor<EntityRepository<any>>;
entityRepository?: Constructor;
replicas?: Partial<ConnectionOptions>[];
strict: boolean;
validate: boolean;
Expand Down

0 comments on commit 3faf8bc

Please sign in to comment.