Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
migrate workspace for @angular/core@9.0.0-beta
Browse files Browse the repository at this point in the history
ModuleWithProviders migration. In Angular 9, the ModuleWithProviders type without a generic has been deprecated. This migration adds the generic where it is missing. Read more about this here: https://v9.angular.io/guide/migration-module-with-providers
  • Loading branch information
cexbrayat committed Nov 12, 2019
1 parent 784a255 commit 2760f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/current-user/current-user.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HTTP_INTERCEPTORS } from '@angular/common/http';

@NgModule()
export class CurrentUserModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<CurrentUserModule> {
return {
ngModule: CurrentUserModule,
providers: [
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/globe-ngb/globe-ngb.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const NGB_MODULES = [
declarations: [NonEditableTypeaheadDirective, DatepickerContainerComponent]
})
export class GlobeNgbModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<GlobeNgbModule> {
return {
ngModule: GlobeNgbModule,
providers: [
Expand Down

0 comments on commit 2760f65

Please sign in to comment.