Skip to content

Commit 62f5ebf

Browse files
committed
fix: allow to use @InjectConnection and @InjectEntityManager as property decorators
1 parent 00d1e92 commit 62f5ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/typeorm.decorators.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export const InjectRepository = (
1515

1616
export const InjectConnection: (
1717
connection?: Connection | ConnectionOptions | string,
18-
) => ParameterDecorator = (
18+
) => ReturnType<typeof Inject> = (
1919
connection?: Connection | ConnectionOptions | string,
2020
) => Inject(getConnectionToken(connection));
2121

2222
export const InjectEntityManager: (
2323
connection?: Connection | ConnectionOptions | string,
24-
) => ParameterDecorator = (
24+
) => ReturnType<typeof Inject> = (
2525
connection?: Connection | ConnectionOptions | string,
2626
) => Inject(getEntityManagerToken(connection));

0 commit comments

Comments
 (0)