I am working on an Angular Library and wanting to have configs passed in. So far, all of that is working, but the issue I am having is when I go to setup the config in the app.module forroot, I do not have any intellisense for what config options are available.
If running it locally, shouldn't there be some intellisense so that the user knows what options they have to fill in? When I go to fill in baseUrl, I do not get any autocomplete/intellisense of what options are available to me.
FiltersModule.forRoot({
baseUrl: CONFIG.baseUrl,
} as any),
Library
export class FiltersModule {
public static forRoot(configuration: Config): ModuleWithProviders {
return {
ngModule: FiltersModule,
providers: [
{
provide: Config,
useValue: configuration,
},
],
}
}
}
export class Config {
baseUrl?: string;
baseUrlSSL?: string;
clmTools?: string;
}
Also, I have this issue in both intellij and vscode
Thanks in advance!