@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.
@@ -7,7 +7,7 @@ import {
7
7
  translateExpression,
8
8
  translateStatement,
9
9
  translateType
10
- } from "./chunk-LRT6BBZP.js";
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 { node, type: ts20.factory.createKeywordTypeNode(ts20.SyntaxKind.UnknownKeyword) };
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
- return { node, type: firstParam.type };
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-WJOCH3Z7.js.map
7442
+ //# sourceMappingURL=chunk-IGDIWPM6.js.map