@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.
package/core.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
  */
@@ -3568,11 +3568,11 @@ export declare enum InjectFlags {
3568
3568
  * parameterized type.
3569
3569
  *
3570
3570
  * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
3571
- * the `Injector`. This provides additional level of type safety.
3571
+ * the `Injector`. This provides an additional level of type safety.
3572
3572
  *
3573
3573
  * ```
3574
3574
  * interface MyInterface {...}
3575
- * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
3575
+ * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
3576
3576
  * // myInterface is inferred to be MyInterface.
3577
3577
  * ```
3578
3578
  *
@@ -3580,14 +3580,15 @@ export declare enum InjectFlags {
3580
3580
  * (possibly by creating) a default value of the parameterized type `T`. This sets up the
3581
3581
  * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
3582
3582
  * application's root injector. If the factory function, which takes zero arguments, needs to inject
3583
- * dependencies, it can do so using the `inject` function. See below for an example.
3583
+ * dependencies, it can do so using the `inject` function.
3584
+ * As you can see in the Tree-shakable InjectionToken example below.
3584
3585
  *
3585
3586
  * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
3586
3587
  * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
3587
3588
  * mentioned above, `'root'` is the default value for `providedIn`.
3588
3589
  *
3589
3590
  * @usageNotes
3590
- * ### Basic Example
3591
+ * ### Basic Examples
3591
3592
  *
3592
3593
  * ### Plain InjectionToken
3593
3594
  *
@@ -3603,6 +3604,12 @@ export declare enum InjectFlags {
3603
3604
  export declare class InjectionToken<T> {
3604
3605
  protected _desc: string;
3605
3606
  readonly ɵprov: unknown;
3607
+ /**
3608
+ * @param _desc Description for the token,
3609
+ * used only for debugging purposes,
3610
+ * it should but does not need to be unique
3611
+ * @param options Options for the token's usage, as described above
3612
+ */
3606
3613
  constructor(_desc: string, options?: {
3607
3614
  providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
3608
3615
  factory: () => T;
@@ -5916,7 +5923,7 @@ declare interface R3DeclareDirectiveFacade {
5916
5923
 
5917
5924
  declare interface R3DeclareFactoryFacade {
5918
5925
  type: Type_2;
5919
- deps: R3DeclareDependencyMetadataFacade[] | null;
5926
+ deps: R3DeclareDependencyMetadataFacade[] | 'invalid' | null;
5920
5927
  target: ɵɵFactoryTarget;
5921
5928
  }
5922
5929