Skip to content

Commit

Permalink
define the type for ModuleWithProviders
Browse files Browse the repository at this point in the history
solves #77
  • Loading branch information
tflori committed May 31, 2021
1 parent 7d4776e commit bdb4a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TranslatorModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const TRANSLATOR_MODULE: InjectionToken<string> = new InjectionToken("TRA
],
})
export class TranslatorModule {
public static forRoot(options: any = {}, module: string = "default"): ModuleWithProviders {
public static forRoot(options: any = {}, module: string = "default"): ModuleWithProviders<TranslatorModule> {
return {
ngModule: TranslatorModule,
providers: [
Expand Down

0 comments on commit bdb4a5b

Please sign in to comment.