diff --git a/lib/common/typeorm.decorators.ts b/lib/common/typeorm.decorators.ts index 433ccdc28..6650d8920 100644 --- a/lib/common/typeorm.decorators.ts +++ b/lib/common/typeorm.decorators.ts @@ -15,12 +15,12 @@ export const InjectRepository = ( export const InjectConnection: ( connection?: Connection | ConnectionOptions | string, -) => ParameterDecorator = ( +) => ReturnType = ( connection?: Connection | ConnectionOptions | string, ) => Inject(getConnectionToken(connection)); export const InjectEntityManager: ( connection?: Connection | ConnectionOptions | string, -) => ParameterDecorator = ( +) => ReturnType = ( connection?: Connection | ConnectionOptions | string, ) => Inject(getEntityManagerToken(connection));