@angular/compiler-cli 16.2.10 → 16.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/bundles/{chunk-WJOCH3Z7.js → chunk-IGDIWPM6.js} +8 -4
- package/bundles/{chunk-WJOCH3Z7.js.map → chunk-IGDIWPM6.js.map} +1 -1
- package/bundles/{chunk-CWD5WGIF.js → chunk-QRYLMBG3.js} +283 -358
- package/bundles/chunk-QRYLMBG3.js.map +6 -0
- package/bundles/{chunk-RM7DQTAJ.js → chunk-VPMZW5GS.js} +2 -2
- package/bundles/{chunk-TU4LAK6J.js → chunk-VZK5UEE7.js} +4 -4
- package/bundles/{chunk-LRT6BBZP.js → chunk-ZETVX4VH.js} +214 -144
- package/bundles/chunk-ZETVX4VH.js.map +6 -0
- package/bundles/index.js +4 -4
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- package/package.json +2 -2
- package/src/ngtsc/metadata/src/api.d.ts +1 -1
- package/src/ngtsc/translator/index.d.ts +1 -0
- package/src/ngtsc/typecheck/src/environment.d.ts +2 -2
- package/bundles/chunk-CWD5WGIF.js.map +0 -6
- package/bundles/chunk-LRT6BBZP.js.map +0 -6
- /package/bundles/{chunk-RM7DQTAJ.js.map → chunk-VPMZW5GS.js.map} +0 -0
- /package/bundles/{chunk-TU4LAK6J.js.map → chunk-VZK5UEE7.js.map} +0 -0
- /package/src/ngtsc/{typecheck → translator}/src/type_emitter.d.ts +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
translateExpression,
|
|
8
8
|
translateStatement,
|
|
9
9
|
translateType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZETVX4VH.js";
|
|
11
11
|
import {
|
|
12
12
|
ClassMemberKind,
|
|
13
13
|
ErrorCode,
|
|
@@ -4746,7 +4746,10 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
|
|
|
4746
4746
|
}
|
|
4747
4747
|
const firstParam = ((_a = definition.parameters[0]) == null ? void 0 : _a.name) === "this" ? definition.parameters[1] : definition.parameters[0];
|
|
4748
4748
|
if (!firstParam) {
|
|
4749
|
-
return {
|
|
4749
|
+
return {
|
|
4750
|
+
node,
|
|
4751
|
+
type: new Reference(ts20.factory.createKeywordTypeNode(ts20.SyntaxKind.UnknownKeyword))
|
|
4752
|
+
};
|
|
4750
4753
|
}
|
|
4751
4754
|
if (!firstParam.type) {
|
|
4752
4755
|
throw createValueHasWrongTypeError(value.node, value, "Input transform function first parameter must have a type");
|
|
@@ -4755,7 +4758,8 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
|
|
|
4755
4758
|
throw createValueHasWrongTypeError(value.node, value, "Input transform function first parameter cannot be a spread parameter");
|
|
4756
4759
|
}
|
|
4757
4760
|
assertEmittableInputType(firstParam.type, clazz.getSourceFile(), reflector, refEmitter);
|
|
4758
|
-
|
|
4761
|
+
const viaModule = value instanceof Reference ? value.bestGuessOwningModule : null;
|
|
4762
|
+
return { node, type: new Reference(firstParam.type, viaModule) };
|
|
4759
4763
|
}
|
|
4760
4764
|
function assertEmittableInputType(type, contextFile, reflector, refEmitter) {
|
|
4761
4765
|
(function walk(node) {
|
|
@@ -7435,4 +7439,4 @@ export {
|
|
|
7435
7439
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7436
7440
|
* found in the LICENSE file at https://angular.io/license
|
|
7437
7441
|
*/
|
|
7438
|
-
//# sourceMappingURL=chunk-
|
|
7442
|
+
//# sourceMappingURL=chunk-IGDIWPM6.js.map
|