Skip to content

Commit a77ccbe

Browse files
refactor: restructure project
1 parent bedaca7 commit a77ccbe

7 files changed

+6
-6
lines changed

src/decorators/InjectRepository.ts renamed to src/decorators/inject-repository.decorator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ConnectionManager, Repository, TreeRepository, MongoRepository } from 'typeorm';
22
import { Constructable, Container, ContainerInstance } from 'typedi';
33

4-
import { EntityTypeMissingError } from '../errors/EntityTypeMissingError';
5-
import { PropertyTypeMissingError } from '../errors/PropertyTypeMissingError';
6-
import { ParamTypeMissingError } from '../errors/ParamTypeMissingError';
4+
import { EntityTypeMissingError } from '../errors/entity-type-missing.error';
5+
import { PropertyTypeMissingError } from '../errors/property-type-missing.error';
6+
import { ParamTypeMissingError } from '../errors/param-type-missing.error';
77

88
/**
99
* Helper to avoid V8 compilation of anonymous function on each call of decorator.

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import { ConnectionManager } from 'typeorm';
77
*/
88
Container.set({ id: ConnectionManager, type: ConnectionManager });
99

10-
export * from './decorators/InjectConnection';
11-
export * from './decorators/InjectManager';
12-
export * from './decorators/InjectRepository';
10+
export * from './decorators/inject-connection.decorator';
11+
export * from './decorators/inject-manager.decorator';
12+
export * from './decorators/inject-repository.decorator';

0 commit comments

Comments
 (0)