Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share configs #624

Closed
Diluka opened this issue Jul 21, 2021 · 1 comment
Closed

share configs #624

Diluka opened this issue Jul 21, 2021 · 1 comment

Comments

@Diluka
Copy link

Diluka commented Jul 21, 2021

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

like registerAs, if there has includeAs(or other name)

registerAs('a',()=>{
  return {a:'a'}
})

registerAs('b',()=>{
  return {a:includeAs('a') , b:'b'}
})

// config.get('b.a') // 'a'

Current behavior

config define separately

Expected behavior

include from other config

for example, there are 3 configs A,B and C. but B and C have the same part like A

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Nest version: X.Y.Z

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@kamilmysliwiec
Copy link
Member

Config factories are simple JS functions that can be grouped/combined as usual. There are no plans to unnecessarily overcomplicate this package with the custom syntax.

@nestjs nestjs locked and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants