ng-mocks 14.2.0 → 14.2.2

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/README.md CHANGED
@@ -16,6 +16,7 @@ The current version of the library **has been tested** and **can be used** with:
16
16
 
17
17
  | Angular | ng-mocks | Jasmine | Jest | Ivy |
18
18
  | ------: | :------: | :-----: | :--: | :-: |
19
+ | 15 | latest | yes | yes | yes |
19
20
  | 14 | latest | yes | yes | yes |
20
21
  | 13 | latest | yes | yes | yes |
21
22
  | 12 | latest | yes | yes | yes |
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, ClassProvider, DebugElement, DebugNode, ElementRef, EventEmitter, ExistingProvider, FactoryProvider, InjectionToken, Injector, PipeTransform, Provider, StaticClassProvider, TemplateRef, ValueProvider, ViewContainerRef } from '@angular/core';
2
- import { ComponentFixture, MetadataOverride, TestBed, TestModuleMetadata } from '@angular/core/testing';
2
+ import { ComponentFixture, MetadataOverride, TestBedStatic, TestModuleMetadata } from '@angular/core/testing';
3
3
 
4
4
  declare type AbstractType<T> = Function & {
5
5
  prototype: T;
@@ -74,6 +74,7 @@ export declare const NG_MOCKS_INTERCEPTORS: InjectionToken<void>;
74
74
  export declare const NG_MOCKS_ROOT_PROVIDERS: InjectionToken<void>;
75
75
  /**
76
76
  * It will be removed from public interface with the next release: A14
77
+ * Use ngMocks.get(token) instead.
77
78
  *
78
79
  * @deprecated
79
80
  * @internal
@@ -90,7 +91,7 @@ export declare const getInjection: <I>(token: AnyDeclaration<I>) => I;
90
91
  * The interface describes the type of the next value in MockBuilder().then().
91
92
  */
92
93
  export interface IMockBuilderResult {
93
- testBed: typeof TestBed;
94
+ testBed: TestBedStatic;
94
95
  }
95
96
  /**
96
97
  * The interface with flags which are suitable for each declaration in MockBuilder chain functions.
@@ -176,7 +177,7 @@ export interface IMockBuilder extends Promise<IMockBuilderResult> {
176
177
  *
177
178
  * @see https://ng-mocks.sudo.eu/api/MockBuilder#adding-schemas
178
179
  */
179
- beforeCompileComponents(callback: (testBed: typeof TestBed) => void): this;
180
+ beforeCompileComponents(callback: (testBed: TestBedStatic) => void): this;
180
181
  /**
181
182
  * .build() returns a declaration which can be used in TestBed.configureTestingModule.
182
183
  * It is usually helpful with 3rd-party libraries when something should be excluded.
@@ -1453,7 +1454,7 @@ export interface MockedComponentFixture<C = any, F = DefaultRenderComponent<C>>
1453
1454
  *
1454
1455
  * @see https://ng-mocks.sudo.eu/api/MockRender
1455
1456
  */
1456
- export declare type DefaultRenderComponent<MComponent extends Record<keyof any, any>> = {
1457
+ export declare type DefaultRenderComponent<MComponent> = {
1457
1458
  [K in keyof MComponent]: MComponent[K];
1458
1459
  };
1459
1460
  /**