Skip to content

Commit 0539445

Browse files
committed
Updated decorators comments
1 parent f1c0284 commit 0539445

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/decorators/OrmCustomRepository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { ConnectionManager } from "typeorm";
22
import { Container } from "typedi";
33

44
/**
5-
* Allows to inject a Repository using typedi's Container.
5+
* Allows to inject a custom Repository using typedi's Container.
6+
* Use it to get the repository class decorated with @EntityRepository decorator.
67
*/
78
export function OrmCustomRepository(cls: Function, connectionName: string = "default"): Function {
89
return function(target: Object|Function, propertyName: string, index?: number) {

src/decorators/OrmRepository.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {Container} from "typedi";
33

44
/**
55
* Allows to inject a Repository using typedi's Container.
6+
* If you want to inject custom Repository class decorated with @EntityRepository decorator, use OrmCustomRepository instead.
67
*/
78
export function OrmRepository(cls: Function, connectionName: string = "default"): Function {
89
return function(target: Object|Function, propertyName: string, index?: number) {

0 commit comments

Comments
 (0)