ng-mocks 14.3.3 → 14.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ClassProvider, DebugElement, DebugNode, ElementRef, EventEmitter, ExistingProvider, FactoryProvider, InjectionToken, Injector, PipeTransform, Provider, StaticClassProvider, TemplateRef, ValueProvider, ViewContainerRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ClassProvider, DebugElement, DebugNode, ElementRef, EventEmitter, ExistingProvider, FactoryProvider, InjectionToken, Injector, NgModule, PipeTransform, Provider, StaticClassProvider, TemplateRef, ValueProvider, ViewContainerRef } from '@angular/core';
2
2
  import { ComponentFixture, MetadataOverride, TestBedStatic, TestModuleMetadata } from '@angular/core/testing';
3
3
 
4
4
  /**
@@ -1078,20 +1078,9 @@ export declare function MockReset(): void;
1078
1078
  */
1079
1079
  export interface NgModuleWithProviders<T = any> {
1080
1080
  ngModule: Type<T>;
1081
- providers?: Array<Provider>;
1081
+ providers?: NgModule["providers"];
1082
1082
  }
1083
- /**
1084
- * NgModuleWithProviders which supports A15
1085
- *
1086
- * @internal remove after removal of A5 support and switch to NgModuleWithProviders
1087
- */
1088
- export interface NgModuleWithProvidersA15<T = any> {
1089
- ngModule: Type<T>;
1090
- providers?: Array<Provider | {
1091
- ɵbrand: string;
1092
- }>;
1093
- }
1094
- export declare type MockBuilderParam = string | AnyDeclaration<any> | NgModuleWithProviders | NgModuleWithProvidersA15;
1083
+ export declare type MockBuilderParam = string | AnyDeclaration<any> | NgModuleWithProviders;
1095
1084
  /**
1096
1085
  * MockBuilder provides reach and simple interfaces of chain functions
1097
1086
  * to build desired mock environment for tests.
@@ -1467,7 +1456,7 @@ export interface IMockRenderOptions {
1467
1456
  /**
1468
1457
  * Extra providers for the testing environment.
1469
1458
  */
1470
- providers?: Provider[];
1459
+ providers?: NgModule["providers"];
1471
1460
  /**
1472
1461
  * Pass true to reset TestBed before render.
1473
1462
  * Usually, it's done automatically.
@@ -1476,7 +1465,7 @@ export interface IMockRenderOptions {
1476
1465
  /**
1477
1466
  * Extra providers for the testing environment.
1478
1467
  */
1479
- viewProviders?: Provider[];
1468
+ viewProviders?: NgModule["providers"];
1480
1469
  }
1481
1470
  /**
1482
1471
  * IMockRenderFactoryOptions describes parameters for MockRenderFactory.