@angular/core 11.2.4 → 11.2.5

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 v11.2.4
2
+ * @license Angular v11.2.5
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": "11.2.4",
3
+ "version": "11.2.5",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v11.2.4
2
+ * @license Angular v11.2.5
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -538,7 +538,7 @@ declare enum InjectFlags {
538
538
  */
539
539
  declare class InjectionToken<T> {
540
540
  protected _desc: string;
541
- readonly ɵprov: never | undefined;
541
+ readonly ɵprov: unknown;
542
542
  constructor(_desc: string, options?: {
543
543
  providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
544
544
  factory: () => T;
@@ -606,7 +606,7 @@ declare abstract class Injector {
606
606
  name?: string;
607
607
  }): Injector;
608
608
  /** @nocollapse */
609
- static ɵprov: never;
609
+ static ɵprov: unknown;
610
610
  }
611
611
 
612
612
  /**
@@ -614,13 +614,14 @@ declare abstract class Injector {
614
614
  *
615
615
  * `InjectorDefTypes` can be used to configure a `StaticInjector`.
616
616
  *
617
+ * This is an opaque type whose structure is highly version dependent. Do not rely on any
618
+ * properties.
619
+ *
617
620
  * @publicApi
618
621
  */
619
622
  declare interface InjectorType<T> extends Type<T> {
620
- /**
621
- * Opaque type whose structure is highly version dependent. Do not rely on any properties.
622
- */
623
- ɵinj: never;
623
+ ɵfac?: unknown;
624
+ ɵinj: unknown;
624
625
  }
625
626
 
626
627
  /**
@@ -946,7 +947,7 @@ export declare function ɵɵdefineInjectable<T>(opts: {
946
947
  token: unknown;
947
948
  providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
948
949
  factory: () => T;
949
- }): never;
950
+ }): unknown;
950
951
 
951
952
  /**
952
953
  * Construct an `InjectorDef` which configures an injector.
@@ -956,9 +957,6 @@ export declare function ɵɵdefineInjectable<T>(opts: {
956
957
  *
957
958
  * Options:
958
959
  *
959
- * * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
960
- * create the type must be provided. If that factory function needs to inject arguments, it can
961
- * use the `inject` function.
962
960
  * * `providers`: an optional array of providers to add to the injector. Each provider must
963
961
  * either have a factory or point to a type which has a `ɵprov` static property (the
964
962
  * type must be an `InjectableType`).
@@ -969,10 +967,9 @@ export declare function ɵɵdefineInjectable<T>(opts: {
969
967
  * @codeGenApi
970
968
  */
971
969
  export declare function ɵɵdefineInjector(options: {
972
- factory: () => any;
973
970
  providers?: any[];
974
971
  imports?: any[];
975
- }): never;
972
+ }): unknown;
976
973
 
977
974
  /**
978
975
  * @codeGenApi
@@ -995,7 +992,7 @@ export declare function ɵɵdefineNgModule<T>(def: {
995
992
  schemas?: SchemaMetadata[] | null;
996
993
  /** Unique ID for the module that is used with `getModuleFactory`. */
997
994
  id?: string | null;
998
- }): never;
995
+ }): unknown;
999
996
 
1000
997
  /**
1001
998
  * @codeGenApi
@@ -1073,7 +1070,6 @@ export declare interface ɵɵInjectableDef<T> {
1073
1070
  * @codeGenApi
1074
1071
  */
1075
1072
  export declare interface ɵɵInjectorDef<T> {
1076
- factory: () => T;
1077
1073
  providers: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[];
1078
1074
  imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
1079
1075
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v11.2.4
2
+ * @license Angular v11.2.5
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 v11.2.4
2
+ * @license Angular v11.2.5
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */