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
?