You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[x] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
I would like to add version for my modules, but i don't know how can I do this. I tried to create a common module.ts but the same name of services killed each us. I tried different module.ts for the versions, it was better but the services with same names didn't work.
This is my last structure:
test-module
1.0
controllers
- test.controller.ts
services
- test.service.ts
test.module.ts
1.1
controllers
- test.controller.ts
services
- test.service.ts
test.module.ts
This is my test service(s):
import*as_from'lodash';import{Injectable}from'@nestjs/common';
@Injectable()exportclassTestService{publictest(){return'1.0';// and 1.1 in 1.1 directory}}
If I import the 1.0 and 1.1 services, the TestService in DorotOne overwrite the DorotTwo's Test
service. Is exists an example where I can read how can I create this versioned module?
The text was updated successfully, but these errors were encountered:
I would like to add version for my modules, but i don't know how can I do this. I tried to create a common module.ts but the same name of services killed each us. I tried different module.ts for the versions, it was better but the services with same names didn't work.
This is my last structure:
test-module
- test.controller.ts
- test.service.ts
- test.controller.ts
- test.service.ts
This is my test service(s):
This is my module.ts:
This is a simple test Controller. A tried import TestService from 1.0 or 1.1 but the test function's response is always 1.0.
If I import the 1.0 and 1.1 services, the TestService in DorotOne overwrite the DorotTwo's Test
service. Is exists an example where I can read how can I create this versioned module?
The text was updated successfully, but these errors were encountered: