libs/nx/src/executors/shared/metadata-utils/__test/my-team-plugin-lib/src/other/module-files/plugin-options-not-typed.ts
Properties |
language | |
Type |
string
|
import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';
export interface LanguageInterceptorPluginOptions {
language: string;
}
export const LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS =
new InjectionToken<LanguageInterceptorPluginOptions>('LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS');
@NgModule()
export class LanguageInterceptorPluginModule {
static forRoot(options?): ModuleWithProviders<LanguageInterceptorPluginModule> {
return {
ngModule: LanguageInterceptorPluginModule,
providers: [{ provide: LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS, useValue: options }]
};
}
}