Skip to content

Commit 1d42cfc

Browse files
authored
Add missing ModuleWithProviders<T> type for ng2
With ng 10 the type definition for ModuleWithProviders is mandatory and should refer to the type of the NgModule (https://angular.io/guide/migration-module-with-providers)
1 parent d3041e4 commit 1d42cfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/angular2/shared/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class SDKBrowserModule {
5757
static forRoot(internalStorageProvider: any = {
5858
provide: InternalStorage,
5959
useClass: CookieBrowser
60-
}): ModuleWithProviders {
60+
}): ModuleWithProviders<SDKBrowserModule> {
6161
return {
6262
ngModule : SDKBrowserModule,
6363
providers : [

0 commit comments

Comments
 (0)