Skip to content

Commit

Permalink
Use generic version for ModuleWithProviders
Browse files Browse the repository at this point in the history
This should add some level of Angular 9 compatibility and fix #144
  • Loading branch information
PascalHonegger authored and AhsanAyaz committed Apr 12, 2020
1 parent be37adf commit fd5d03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DeviceDetectorService } from './device-detector.service';
]
})
export class DeviceDetectorModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<DeviceDetectorModule> {
return {
ngModule: DeviceDetectorModule,
providers: [DeviceDetectorService]
Expand Down

0 comments on commit fd5d03c

Please sign in to comment.