为什么BrowserModule和HttpClientModule没有实现NgModule接口?

Ste*_*rov 5 angular angular-httpclient

刚发现BrowserModule和HttpClientModule没有实现NgModule接口.有人可以解释一下原因吗?

更新:我试图解决的实际问题是提取导入部分以分离我可以根据特定规则创建的数组.所以我的想法是指定这个数组的类型.我不想放在any这里:

const importedModules: any[] = [
   BrowserModule,
   HttpClientModule,
   FormsModule,
   SharedModule,
   ...
];

if (!environment.production) {
  importedModules.push(StoreDevtoolsModule.instrument());
}

@NgModule({
   //...
   imports: importedModules,
   //...
})
Run Code Online (Sandbox Code Playgroud)