@angular/compiler-cli 16.0.0-next.1 → 16.0.0-next.3
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/{chunk-N6MSUQVH.js → chunk-54RHUHYB.js} +5 -5
- package/bundles/{chunk-JKV3J53A.js → chunk-BVXD7IJL.js} +9 -38
- package/bundles/chunk-BVXD7IJL.js.map +6 -0
- package/bundles/{chunk-TBUSSXUA.js → chunk-EC5K6QPP.js} +7 -7
- package/bundles/{chunk-QQGJEWBQ.js → chunk-EDWIBG7R.js} +6 -6
- package/bundles/{chunk-Q2TY6LB3.js → chunk-F6KVOAVN.js} +5 -5
- package/bundles/{chunk-EKTJ7622.js → chunk-GYHDNUIK.js} +7 -7
- package/bundles/{chunk-TK3GHMT6.js → chunk-K2A5WD7L.js} +21 -21
- package/bundles/{chunk-JEQIMWEA.js → chunk-LJFSK6KK.js} +35 -35
- package/bundles/chunk-LJFSK6KK.js.map +6 -0
- package/bundles/{chunk-6PDKXFWN.js → chunk-LLHKY5PL.js} +8 -8
- package/bundles/{chunk-XS6XKZQP.js → chunk-MENJKFAO.js} +196 -130
- package/bundles/chunk-MENJKFAO.js.map +6 -0
- package/bundles/{chunk-IE2WWKOE.js → chunk-OJ24Q4I3.js} +104 -103
- package/bundles/chunk-OJ24Q4I3.js.map +6 -0
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/linker/src/ast/ast_value.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/shared.d.ts +3 -3
- package/src/ngtsc/annotations/directive/src/symbol.d.ts +3 -3
- package/src/ngtsc/metadata/src/api.d.ts +6 -2
- package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +1 -0
- package/src/ngtsc/metadata/src/property_mapping.d.ts +10 -10
- package/src/ngtsc/metadata/src/util.d.ts +2 -2
- package/src/ngtsc/typecheck/api/api.d.ts +2 -2
- package/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.d.ts +6 -8
- package/bundles/chunk-IE2WWKOE.js.map +0 -6
- package/bundles/chunk-JEQIMWEA.js.map +0 -6
- package/bundles/chunk-JKV3J53A.js.map +0 -6
- package/bundles/chunk-XS6XKZQP.js.map +0 -6
- /package/bundles/{chunk-N6MSUQVH.js.map → chunk-54RHUHYB.js.map} +0 -0
- /package/bundles/{chunk-TBUSSXUA.js.map → chunk-EC5K6QPP.js.map} +0 -0
- /package/bundles/{chunk-QQGJEWBQ.js.map → chunk-EDWIBG7R.js.map} +0 -0
- /package/bundles/{chunk-Q2TY6LB3.js.map → chunk-F6KVOAVN.js.map} +0 -0
- /package/bundles/{chunk-EKTJ7622.js.map → chunk-GYHDNUIK.js.map} +0 -0
- /package/bundles/{chunk-TK3GHMT6.js.map → chunk-K2A5WD7L.js.map} +0 -0
- /package/bundles/{chunk-6PDKXFWN.js.map → chunk-LLHKY5PL.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
|
@@ -107,7 +107,7 @@ export declare class AstObject<T extends object, TExpression> {
|
|
|
107
107
|
* Converts the AstObject to a raw JavaScript object, mapping each property value (as an
|
|
108
108
|
* `AstValue`) to the generic type (`T`) via the `mapper` function.
|
|
109
109
|
*/
|
|
110
|
-
toLiteral<V>(mapper: (value: AstValue<ObjectValueType<T>, TExpression
|
|
110
|
+
toLiteral<V>(mapper: (value: AstValue<ObjectValueType<T>, TExpression>, key: string) => V): Record<string, V>;
|
|
111
111
|
/**
|
|
112
112
|
* Converts the AstObject to a JavaScript Map, mapping each property value (as an
|
|
113
113
|
* `AstValue`) to the generic type (`T`) via the `mapper` function.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "16.0.0-next.
|
|
3
|
+
"version": "16.0.0-next.3",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"yargs": "^17.2.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@angular/compiler": "16.0.0-next.
|
|
55
|
+
"@angular/compiler": "16.0.0-next.3",
|
|
56
56
|
"typescript": ">=4.9.3 <5.1"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { AnimationTriggerNames, R3ClassMetadata, R3ComponentMetadata, R3TemplateDependencyMetadata, SchemaMetadata } from '@angular/compiler';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { Reference } from '../../../imports';
|
|
11
|
-
import { ClassPropertyMapping, ComponentResources, DirectiveTypeCheckMeta, HostDirectiveMeta } from '../../../metadata';
|
|
11
|
+
import { ClassPropertyMapping, ComponentResources, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping } from '../../../metadata';
|
|
12
12
|
import { ClassDeclaration } from '../../../reflection';
|
|
13
13
|
import { SubsetOfKeys } from '../../../util/src/typescript';
|
|
14
14
|
import { ParsedTemplateWithSource, StyleUrlMeta } from './resources';
|
|
@@ -29,7 +29,7 @@ export interface ComponentAnalysisData {
|
|
|
29
29
|
typeCheckMeta: DirectiveTypeCheckMeta;
|
|
30
30
|
template: ParsedTemplateWithSource;
|
|
31
31
|
classMetadata: R3ClassMetadata | null;
|
|
32
|
-
inputs: ClassPropertyMapping
|
|
32
|
+
inputs: ClassPropertyMapping<InputMapping>;
|
|
33
33
|
outputs: ClassPropertyMapping;
|
|
34
34
|
/**
|
|
35
35
|
* Providers extracted from the `providers` field of the component annotation which will require
|
|
@@ -9,7 +9,7 @@ import { ConstantPool, R3ClassMetadata, R3DirectiveMetadata } from '@angular/com
|
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { Reference, ReferenceEmitter } from '../../../imports';
|
|
11
11
|
import { SemanticDepGraphUpdater } from '../../../incremental/semantic_graph';
|
|
12
|
-
import { ClassPropertyMapping, DirectiveTypeCheckMeta, HostDirectiveMeta, MetadataReader, MetadataRegistry } from '../../../metadata';
|
|
12
|
+
import { ClassPropertyMapping, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping, MetadataReader, MetadataRegistry } from '../../../metadata';
|
|
13
13
|
import { PartialEvaluator } from '../../../partial_evaluator';
|
|
14
14
|
import { PerfRecorder } from '../../../perf';
|
|
15
15
|
import { ClassDeclaration, Decorator, ReflectionHost } from '../../../reflection';
|
|
@@ -23,7 +23,7 @@ export interface DirectiveHandlerData {
|
|
|
23
23
|
meta: R3DirectiveMetadata;
|
|
24
24
|
classMetadata: R3ClassMetadata | null;
|
|
25
25
|
providersRequiringFactory: Set<Reference<ClassDeclaration>> | null;
|
|
26
|
-
inputs: ClassPropertyMapping
|
|
26
|
+
inputs: ClassPropertyMapping<InputMapping>;
|
|
27
27
|
outputs: ClassPropertyMapping;
|
|
28
28
|
isPoisoned: boolean;
|
|
29
29
|
isStructural: boolean;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { ParsedHostBindings, R3DirectiveMetadata, R3QueryMetadata } from '@angular/compiler';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { ReferenceEmitter } from '../../../imports';
|
|
11
|
-
import { ClassPropertyMapping, HostDirectiveMeta } from '../../../metadata';
|
|
11
|
+
import { ClassPropertyMapping, HostDirectiveMeta, InputMapping } from '../../../metadata';
|
|
12
12
|
import { PartialEvaluator } from '../../../partial_evaluator';
|
|
13
13
|
import { ClassDeclaration, ClassMember, Decorator, ReflectionHost } from '../../../reflection';
|
|
14
14
|
import { HandlerFlags } from '../../../transform';
|
|
@@ -21,7 +21,7 @@ import { HandlerFlags } from '../../../transform';
|
|
|
21
21
|
export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator | null>, reflector: ReflectionHost, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, isCore: boolean, flags: HandlerFlags, annotateForClosureCompiler: boolean, defaultSelector?: string | null): {
|
|
22
22
|
decorator: Map<string, ts.Expression>;
|
|
23
23
|
metadata: R3DirectiveMetadata;
|
|
24
|
-
inputs: ClassPropertyMapping
|
|
24
|
+
inputs: ClassPropertyMapping<InputMapping>;
|
|
25
25
|
outputs: ClassPropertyMapping;
|
|
26
26
|
isStructural: boolean;
|
|
27
27
|
hostDirectives: HostDirectiveMeta[] | null;
|
|
@@ -29,4 +29,4 @@ export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decora
|
|
|
29
29
|
} | undefined;
|
|
30
30
|
export declare function extractQueryMetadata(exprNode: ts.Node, name: string, args: ReadonlyArray<ts.Expression>, propertyName: string, reflector: ReflectionHost, evaluator: PartialEvaluator): R3QueryMetadata;
|
|
31
31
|
export declare function extractHostBindings(members: ClassMember[], evaluator: PartialEvaluator, coreModule: string | undefined, metadata?: Map<string, ts.Expression>): ParsedHostBindings;
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function parseFieldStringArrayValue(directive: Map<string, ts.Expression>, field: string, evaluator: PartialEvaluator): null | string[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { SemanticSymbol, SemanticTypeParameter } from '../../../incremental/semantic_graph';
|
|
9
|
-
import { ClassPropertyMapping, DirectiveTypeCheckMeta } from '../../../metadata';
|
|
9
|
+
import { ClassPropertyMapping, DirectiveTypeCheckMeta, InputMapping } from '../../../metadata';
|
|
10
10
|
import { ClassDeclaration } from '../../../reflection';
|
|
11
11
|
/**
|
|
12
12
|
* Represents an Angular directive. Components are represented by `ComponentSymbol`, which inherits
|
|
@@ -14,13 +14,13 @@ import { ClassDeclaration } from '../../../reflection';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class DirectiveSymbol extends SemanticSymbol {
|
|
16
16
|
readonly selector: string | null;
|
|
17
|
-
readonly inputs: ClassPropertyMapping
|
|
17
|
+
readonly inputs: ClassPropertyMapping<InputMapping>;
|
|
18
18
|
readonly outputs: ClassPropertyMapping;
|
|
19
19
|
readonly exportAs: string[] | null;
|
|
20
20
|
readonly typeCheckMeta: DirectiveTypeCheckMeta;
|
|
21
21
|
readonly typeParameters: SemanticTypeParameter[] | null;
|
|
22
22
|
baseClass: SemanticSymbol | null;
|
|
23
|
-
constructor(decl: ClassDeclaration, selector: string | null, inputs: ClassPropertyMapping
|
|
23
|
+
constructor(decl: ClassDeclaration, selector: string | null, inputs: ClassPropertyMapping<InputMapping>, outputs: ClassPropertyMapping, exportAs: string[] | null, typeCheckMeta: DirectiveTypeCheckMeta, typeParameters: SemanticTypeParameter[] | null);
|
|
24
24
|
isPublicApiAffected(previousSymbol: SemanticSymbol): boolean;
|
|
25
25
|
isTypeCheckApiAffected(previousSymbol: SemanticSymbol): boolean;
|
|
26
26
|
}
|
|
@@ -9,7 +9,7 @@ import { DirectiveMeta as T2DirectiveMeta, SchemaMetadata } from '@angular/compi
|
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { Reference } from '../../imports';
|
|
11
11
|
import { ClassDeclaration } from '../../reflection';
|
|
12
|
-
import { ClassPropertyMapping, ClassPropertyName } from './property_mapping';
|
|
12
|
+
import { ClassPropertyMapping, ClassPropertyName, InputOrOutput } from './property_mapping';
|
|
13
13
|
/**
|
|
14
14
|
* Metadata collected for an `NgModule`.
|
|
15
15
|
*/
|
|
@@ -104,6 +104,10 @@ export declare enum MatchSource {
|
|
|
104
104
|
/** The directive was applied as a host directive. */
|
|
105
105
|
HostDirective = 1
|
|
106
106
|
}
|
|
107
|
+
/** Metadata for a single input mapping. */
|
|
108
|
+
export type InputMapping = InputOrOutput & {
|
|
109
|
+
required: boolean;
|
|
110
|
+
};
|
|
107
111
|
/**
|
|
108
112
|
* Metadata collected for a directive within an NgModule's scope.
|
|
109
113
|
*/
|
|
@@ -120,7 +124,7 @@ export interface DirectiveMeta extends T2DirectiveMeta, DirectiveTypeCheckMeta {
|
|
|
120
124
|
/**
|
|
121
125
|
* A mapping of input field names to the property names.
|
|
122
126
|
*/
|
|
123
|
-
inputs: ClassPropertyMapping
|
|
127
|
+
inputs: ClassPropertyMapping<InputMapping>;
|
|
124
128
|
/**
|
|
125
129
|
* A mapping of output field names to the property names.
|
|
126
130
|
*/
|
|
@@ -22,6 +22,7 @@ export declare class HostDirectivesResolver {
|
|
|
22
22
|
* Filters the class property mappings so that only the allowed ones are present.
|
|
23
23
|
* @param source Property mappings that should be filtered.
|
|
24
24
|
* @param allowedProperties Property mappings that are allowed in the final results.
|
|
25
|
+
* @param valueResolver Function used to resolve the value that is assigned to the final mapping.
|
|
25
26
|
*/
|
|
26
27
|
private filterMappings;
|
|
27
28
|
}
|
|
@@ -44,7 +44,7 @@ export interface InputOrOutput {
|
|
|
44
44
|
* Allows bidirectional querying of the mapping - looking up all inputs/outputs with a given
|
|
45
45
|
* property name, or mapping from a specific class property to its binding property name.
|
|
46
46
|
*/
|
|
47
|
-
export declare class ClassPropertyMapping implements InputOutputPropertySet {
|
|
47
|
+
export declare class ClassPropertyMapping<T extends InputOrOutput = InputOrOutput> implements InputOutputPropertySet {
|
|
48
48
|
/**
|
|
49
49
|
* Mapping from class property names to the single `InputOrOutput` for that class property.
|
|
50
50
|
*/
|
|
@@ -57,20 +57,20 @@ export declare class ClassPropertyMapping implements InputOutputPropertySet {
|
|
|
57
57
|
/**
|
|
58
58
|
* Construct a `ClassPropertyMapping` with no entries.
|
|
59
59
|
*/
|
|
60
|
-
static empty(): ClassPropertyMapping
|
|
60
|
+
static empty<T extends InputOrOutput>(): ClassPropertyMapping<T>;
|
|
61
61
|
/**
|
|
62
62
|
* Construct a `ClassPropertyMapping` from a primitive JS object which maps class property names
|
|
63
63
|
* to either binding property names or an array that contains both names, which is used in on-disk
|
|
64
64
|
* metadata formats (e.g. in .d.ts files).
|
|
65
65
|
*/
|
|
66
|
-
static fromMappedObject(obj: {
|
|
67
|
-
[classPropertyName: string]: BindingPropertyName | [ClassPropertyName, BindingPropertyName];
|
|
68
|
-
}): ClassPropertyMapping
|
|
66
|
+
static fromMappedObject<T extends InputOrOutput>(obj: {
|
|
67
|
+
[classPropertyName: string]: BindingPropertyName | [ClassPropertyName, BindingPropertyName] | T;
|
|
68
|
+
}): ClassPropertyMapping<T>;
|
|
69
69
|
/**
|
|
70
70
|
* Merge two mappings into one, with class properties from `b` taking precedence over class
|
|
71
71
|
* properties from `a`.
|
|
72
72
|
*/
|
|
73
|
-
static merge(a: ClassPropertyMapping
|
|
73
|
+
static merge<T extends InputOrOutput>(a: ClassPropertyMapping<T>, b: ClassPropertyMapping<T>): ClassPropertyMapping<T>;
|
|
74
74
|
/**
|
|
75
75
|
* All class property names mapped in this mapping.
|
|
76
76
|
*/
|
|
@@ -86,11 +86,11 @@ export declare class ClassPropertyMapping implements InputOutputPropertySet {
|
|
|
86
86
|
/**
|
|
87
87
|
* Lookup all `InputOrOutput`s that use this `propertyName`.
|
|
88
88
|
*/
|
|
89
|
-
getByBindingPropertyName(propertyName: string): ReadonlyArray<
|
|
89
|
+
getByBindingPropertyName(propertyName: string): ReadonlyArray<T> | null;
|
|
90
90
|
/**
|
|
91
91
|
* Lookup the `InputOrOutput` associated with a `classPropertyName`.
|
|
92
92
|
*/
|
|
93
|
-
getByClassPropertyName(classPropertyName: string):
|
|
93
|
+
getByClassPropertyName(classPropertyName: string): T | null;
|
|
94
94
|
/**
|
|
95
95
|
* Convert this mapping to a primitive JS object which maps each class property directly to the
|
|
96
96
|
* binding property name associated with it.
|
|
@@ -106,11 +106,11 @@ export declare class ClassPropertyMapping implements InputOutputPropertySet {
|
|
|
106
106
|
* This object format is used when mappings are serialized (for example into .d.ts files).
|
|
107
107
|
*/
|
|
108
108
|
toJointMappedObject(): {
|
|
109
|
-
[classPropertyName: string]:
|
|
109
|
+
[classPropertyName: string]: T;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
112
|
* Implement the iterator protocol and return entry objects which contain the class and binding
|
|
113
113
|
* property names (and are useful for destructuring).
|
|
114
114
|
*/
|
|
115
|
-
[Symbol.iterator](): IterableIterator<
|
|
115
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
116
116
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import ts from 'typescript';
|
|
9
9
|
import { OwningModule, Reference } from '../../imports';
|
|
10
10
|
import { ClassDeclaration, ReflectionHost } from '../../reflection';
|
|
11
|
-
import { DirectiveMeta, DirectiveTypeCheckMeta, MetadataReader, NgModuleMeta, PipeMeta } from './api';
|
|
11
|
+
import { DirectiveMeta, DirectiveTypeCheckMeta, InputMapping, MetadataReader, NgModuleMeta, PipeMeta } from './api';
|
|
12
12
|
import { ClassPropertyMapping } from './property_mapping';
|
|
13
13
|
export declare function extractReferencesFromType(checker: ts.TypeChecker, def: ts.TypeNode, bestGuessOwningModule: OwningModule | null): Reference<ClassDeclaration>[];
|
|
14
14
|
export declare function extraReferenceFromTypeQuery(checker: ts.TypeChecker, typeNode: ts.TypeQueryNode, origin: ts.TypeNode, bestGuessOwningModule: OwningModule | null): Reference<ClassDeclaration<ts.ClassDeclaration>>;
|
|
@@ -23,7 +23,7 @@ export declare function readStringArrayType(type: ts.TypeNode): string[];
|
|
|
23
23
|
* that use the directive. This metadata does not contain information from a base class, if any,
|
|
24
24
|
* making this metadata invariant to changes of inherited classes.
|
|
25
25
|
*/
|
|
26
|
-
export declare function extractDirectiveTypeCheckMeta(node: ClassDeclaration, inputs: ClassPropertyMapping
|
|
26
|
+
export declare function extractDirectiveTypeCheckMeta(node: ClassDeclaration, inputs: ClassPropertyMapping<InputMapping>, reflector: ReflectionHost): DirectiveTypeCheckMeta;
|
|
27
27
|
/**
|
|
28
28
|
* A `MetadataReader` that reads from an ordered set of child readers until it obtains the requested
|
|
29
29
|
* metadata.
|
|
@@ -9,7 +9,7 @@ import { AbsoluteSourceSpan, BoundTarget, DirectiveMeta, ParseSourceSpan, Schema
|
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { ErrorCode } from '../../diagnostics';
|
|
11
11
|
import { Reference } from '../../imports';
|
|
12
|
-
import { ClassPropertyMapping, DirectiveTypeCheckMeta, HostDirectiveMeta } from '../../metadata';
|
|
12
|
+
import { ClassPropertyMapping, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping } from '../../metadata';
|
|
13
13
|
import { ClassDeclaration } from '../../reflection';
|
|
14
14
|
/**
|
|
15
15
|
* Extension of `DirectiveMeta` that includes additional information required to type-check the
|
|
@@ -18,7 +18,7 @@ import { ClassDeclaration } from '../../reflection';
|
|
|
18
18
|
export interface TypeCheckableDirectiveMeta extends DirectiveMeta, DirectiveTypeCheckMeta {
|
|
19
19
|
ref: Reference<ClassDeclaration>;
|
|
20
20
|
queries: string[];
|
|
21
|
-
inputs: ClassPropertyMapping
|
|
21
|
+
inputs: ClassPropertyMapping<InputMapping>;
|
|
22
22
|
outputs: ClassPropertyMapping;
|
|
23
23
|
isStandalone: boolean;
|
|
24
24
|
hostDirectives: HostDirectiveMeta[] | null;
|
|
@@ -8,17 +8,15 @@
|
|
|
8
8
|
import ts from 'typescript';
|
|
9
9
|
import { ReflectionHost } from '../../ngtsc/reflection';
|
|
10
10
|
/**
|
|
11
|
-
* Gets a transformer for downleveling Angular decorators.
|
|
11
|
+
* Gets a transformer for downleveling Angular constructor parameter and property decorators.
|
|
12
|
+
*
|
|
13
|
+
* Note that Angular class decorators are never processed as those rely on side effects that
|
|
14
|
+
* would otherwise no longer be executed. i.e. the creation of a component definition.
|
|
15
|
+
*
|
|
12
16
|
* @param typeChecker Reference to the program's type checker.
|
|
13
17
|
* @param host Reflection host that is used for determining decorators.
|
|
14
18
|
* @param diagnostics List which will be populated with diagnostics if any.
|
|
15
19
|
* @param isCore Whether the current TypeScript program is for the `@angular/core` package.
|
|
16
20
|
* @param isClosureCompilerEnabled Whether closure annotations need to be added where needed.
|
|
17
|
-
* @param skipClassDecorators Whether class decorators should be skipped from downleveling.
|
|
18
|
-
* This is useful for JIT mode where class decorators should be preserved as they could rely
|
|
19
|
-
* on immediate execution. e.g. downleveling `@Injectable` means that the injectable factory
|
|
20
|
-
* is not created, and injecting the token will not work. If this decorator would not be
|
|
21
|
-
* downleveled, the `Injectable` decorator will execute immediately on file load, and
|
|
22
|
-
* Angular will generate the corresponding injectable factory.
|
|
23
21
|
*/
|
|
24
|
-
export declare function getDownlevelDecoratorsTransform(typeChecker: ts.TypeChecker, host: ReflectionHost, diagnostics: ts.Diagnostic[], isCore: boolean, isClosureCompilerEnabled: boolean
|
|
22
|
+
export declare function getDownlevelDecoratorsTransform(typeChecker: ts.TypeChecker, host: ReflectionHost, diagnostics: ts.Diagnostic[], isCore: boolean, isClosureCompilerEnabled: boolean): ts.TransformerFactory<ts.SourceFile>;
|