Skip to content

Commit 142dbda

Browse files
committed
fix(angular): fix the type of the providers
1 parent 60a97cf commit 142dbda

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

packages/igx-templates/igx-ts/projects/_base/files/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationConfig, ErrorHandler, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, ErrorHandler, EnvironmentProviders, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33
import { BrowserModule, HammerModule } from '@angular/platform-browser';
44
import { provideAnimations } from '@angular/platform-browser/animations';
@@ -10,7 +10,7 @@ import { environment } from '../environments/environment';
1010
// provide the HAMMER_GESTURE_CONFIG token
1111
// to override the default settings of the HammerModule
1212
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
13-
const providers: Provider = [
13+
const providers: (EnvironmentProviders | Provider)[] = [
1414
provideZoneChangeDetection({ eventCoalescing: true }),
1515
provideRouter(routes),
1616
importProvidersFrom(BrowserModule, HammerModule),

packages/igx-templates/igx-ts/projects/_base_with_home/files/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ApplicationConfig, Provider, provideZoneChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, EnvironmentProviders, Provider, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33

44
import { routes } from './app.routes';
55

6-
const providers: Provider = [
6+
const providers: (EnvironmentProviders | Provider)[] = [
77
provideZoneChangeDetection({ eventCoalescing: true }),
88
provideRouter(routes)
99
];

packages/igx-templates/igx-ts/projects/empty/files/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ApplicationConfig, Provider, provideZoneChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, EnvironmentProviders, Provider, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33

44
import { routes } from './app.routes';
55

6-
const providers: Provider = [
6+
const providers: (EnvironmentProviders | Provider)[] = [
77
provideZoneChangeDetection({ eventCoalescing: true }),
88
provideRouter(routes)
99
];

packages/igx-templates/igx-ts/projects/side-nav-auth/files/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationConfig, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, EnvironmentProviders, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33
import { BrowserModule, HammerModule } from '@angular/platform-browser';
44
import { provideAnimations } from '@angular/platform-browser/animations';
@@ -15,7 +15,7 @@ import { routes } from './app.routes';
1515
// provide the HAMMER_GESTURE_CONFIG token
1616
// to override the default settings of the HammerModule
1717
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
18-
const providers: Provider = [
18+
const providers: (EnvironmentProviders | Provider)[] = [
1919
provideZoneChangeDetection({ eventCoalescing: true }),
2020
provideRouter(routes),
2121
importProvidersFrom(

packages/igx-templates/igx-ts/projects/side-nav/files/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationConfig, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, EnvironmentProviders, Provider, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33
import { BrowserModule, HammerModule } from '@angular/platform-browser';
44
import { provideAnimations } from '@angular/platform-browser/animations';
@@ -14,7 +14,7 @@ import { routes } from './app.routes';
1414
// provide the HAMMER_GESTURE_CONFIG token
1515
// to override the default settings of the HammerModule
1616
// { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig }
17-
const providers: Provider = [
17+
const providers: (EnvironmentProviders | Provider)[] = [
1818
provideZoneChangeDetection({ eventCoalescing: true }),
1919
provideRouter(routes),
2020
importProvidersFrom(

0 commit comments

Comments
 (0)