From bdb4a5bbbe7799f03ed3b783f38c57dab4ab3a32 Mon Sep 17 00:00:00 2001 From: Thomas Flori Date: Mon, 31 May 2021 08:21:20 +0200 Subject: [PATCH] define the type for ModuleWithProviders solves #77 --- src/TranslatorModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TranslatorModule.ts b/src/TranslatorModule.ts index 304b427..bd136cb 100644 --- a/src/TranslatorModule.ts +++ b/src/TranslatorModule.ts @@ -30,7 +30,7 @@ export const TRANSLATOR_MODULE: InjectionToken = new InjectionToken("TRA ], }) export class TranslatorModule { - public static forRoot(options: any = {}, module: string = "default"): ModuleWithProviders { + public static forRoot(options: any = {}, module: string = "default"): ModuleWithProviders { return { ngModule: TranslatorModule, providers: [