tflori / angular-translator

translation module for angular
https://tflori.github.io/angular-translator/
MIT License
21 stars 6 forks source link

Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). #77

Closed Ruchir-zealous closed 3 years ago

Ruchir-zealous commented 3 years ago
ERROR in node_modules/angular-translator/src/TranslatorModule.d.ts:9:53 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

    static forRoot(options?: any, module?: string): ModuleWithProviders;

got above error when updated Angular version 10.2

tflori commented 3 years ago

According to this article https://angular.io/guide/migration-module-with-providers we have to update the return type of our translator module.

If I'm correct we just need to replace it. I just released version 3.1.2 - please give it a try.