So I have the following project structure:
apps
├── car
└── [...]
libs
├── app-car
├── [...]
└── shared
├── config
└── [...]
For every app I want to provide a different config, that can be used in the grouped libs.
export interface DefaultAppConfig {
language: string;
}
export interface CarAppConfig extends DefaultAppConfig {
dealerShipName: string;
}
This is how I provide the config for every app.
But how can I typecast the config (placed in shared/config
) that the CarAppConfig
is used only for the group app-car
and DefaultAppConfig
for shared
?
shared
. Is that right? – Sfshared/config
would be a good option. I also edited the question and added the placement of the service.libs/shared
is a group of libs. Libs that are used across all apps are placed here. Yes I want a strongly-typed configuration per app – Brahui