@angular/core 12.2.8 → 12.2.12

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 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": "12.2.8",
3
+ "version": "12.2.12",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -463,11 +463,11 @@ declare enum InjectFlags {
463
463
  * parameterized type.
464
464
  *
465
465
  * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
466
- * the `Injector`. This provides additional level of type safety.
466
+ * the `Injector`. This provides an additional level of type safety.
467
467
  *
468
468
  * ```
469
469
  * interface MyInterface {...}
470
- * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
470
+ * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
471
471
  * // myInterface is inferred to be MyInterface.
472
472
  * ```
473
473
  *
@@ -475,14 +475,15 @@ declare enum InjectFlags {
475
475
  * (possibly by creating) a default value of the parameterized type `T`. This sets up the
476
476
  * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
477
477
  * application's root injector. If the factory function, which takes zero arguments, needs to inject
478
- * dependencies, it can do so using the `inject` function. See below for an example.
478
+ * dependencies, it can do so using the `inject` function.
479
+ * As you can see in the Tree-shakable InjectionToken example below.
479
480
  *
480
481
  * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
481
482
  * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
482
483
  * mentioned above, `'root'` is the default value for `providedIn`.
483
484
  *
484
485
  * @usageNotes
485
- * ### Basic Example
486
+ * ### Basic Examples
486
487
  *
487
488
  * ### Plain InjectionToken
488
489
  *
@@ -498,6 +499,12 @@ declare enum InjectFlags {
498
499
  declare class InjectionToken<T> {
499
500
  protected _desc: string;
500
501
  readonly ɵprov: unknown;
502
+ /**
503
+ * @param _desc Description for the token,
504
+ * used only for debugging purposes,
505
+ * it should but does not need to be unique
506
+ * @param options Options for the token's usage, as described above
507
+ */
501
508
  constructor(_desc: string, options?: {
502
509
  providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
503
510
  factory: () => T;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */