@angular/core 15.0.2 → 15.1.0-next.1

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,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.2
2
+ * @license Angular v15.1.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "15.0.2",
3
+ "version": "15.1.0-next.1",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.2
2
+ * @license Angular v15.1.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -292,6 +292,12 @@ export declare interface TestBed {
292
292
  get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
293
293
  /** @deprecated from v9.0.0 use TestBed.inject */
294
294
  get(token: any, notFoundValue?: any): any;
295
+ /**
296
+ * Runs the given function in the `EnvironmentInjector` context of `TestBed`.
297
+ *
298
+ * @see EnvironmentInjector#runInContext
299
+ */
300
+ runInInjectionContext<T>(fn: () => T): T;
295
301
  execute(tokens: any[], fn: Function, context?: any): any;
296
302
  overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBed;
297
303
  overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBed;