@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.
- package/bundles/core-testing.umd.js +1 -1
- package/bundles/core-testing.umd.min.js +1 -1
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +40 -62
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +70 -70
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +25 -34
- package/core.metadata.json +1 -1
- package/esm2015/src/compiler/compiler_facade_interface.js +1 -1
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/di/injection_token.js +1 -1
- package/esm2015/src/di/interface/defs.js +2 -9
- package/esm2015/src/di/jit/environment.js +2 -18
- package/esm2015/src/di/r3_injector.js +3 -8
- package/esm2015/src/metadata/ng_module.js +5 -6
- package/esm2015/src/render3/definition.js +1 -2
- package/esm2015/src/render3/definition_factory.js +1 -1
- package/esm2015/src/render3/di.js +12 -22
- package/esm2015/src/render3/errors.js +1 -1
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/render3/interfaces/definition.js +1 -1
- package/esm2015/src/render3/jit/environment.js +1 -2
- package/esm2015/src/render3/jit/module.js +22 -4
- package/esm2015/src/render3/util/discovery_utils.js +1 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +41 -62
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +11 -15
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/fesm2015/testing.js
CHANGED
package/package.json
CHANGED
package/src/r3_symbols.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v11.2.
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
}
|
package/testing/testing.d.ts
CHANGED
package/testing.d.ts
CHANGED