kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

Fix problem with eslint #96

Open benni-h opened 2 years ago

benni-h commented 2 years ago

Problem

I updated to a newer version of angular and had to add eslint.

(Without turning of linting or modifying the linting rules I could fix the files on the fly or create my own package.)

Logs

node_modules/ngx-mydatepicker/lib/ngx-mydatepicker.module.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

3     static forRoot(): ModuleWithProviders;

Main problem

Not 100% sure where to start in the code as it looks like it is in the code and added when compiling.

Versions

(Shortened list.) "@angular/...": "~12.2.11", "eslint": "7.32.0", ... (The update process is still ongoing/blocked thanks to some other package.)