@angular/compiler-cli 17.0.0-rc.0 → 17.0.0-rc.2

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.
Files changed (35) hide show
  1. package/bundles/{chunk-LPMZPYYV.js → chunk-6JN5EFEW.js} +9 -5
  2. package/bundles/{chunk-LPMZPYYV.js.map → chunk-6JN5EFEW.js.map} +1 -1
  3. package/bundles/{chunk-225M55ER.js → chunk-6WFRHXYB.js} +2 -2
  4. package/bundles/{chunk-RAK4OYZY.js → chunk-CLTYCPJK.js} +7 -2
  5. package/bundles/{chunk-RAK4OYZY.js.map → chunk-CLTYCPJK.js.map} +1 -1
  6. package/bundles/{chunk-Q5XOEMMF.js → chunk-KIPH6OCC.js} +312 -267
  7. package/bundles/chunk-KIPH6OCC.js.map +6 -0
  8. package/bundles/{chunk-YR36R26L.js → chunk-QDHJ26RK.js} +218 -148
  9. package/bundles/chunk-QDHJ26RK.js.map +6 -0
  10. package/bundles/{chunk-GTB2POO5.js → chunk-QFTMYSLL.js} +3 -3
  11. package/bundles/{chunk-7BZJ2Z2V.js → chunk-VNJI35KB.js} +2 -2
  12. package/bundles/index.js +8 -6
  13. package/bundles/index.js.map +1 -1
  14. package/bundles/linker/babel/index.js +3 -3
  15. package/bundles/linker/index.js +3 -3
  16. package/bundles/private/migrations.js +3 -3
  17. package/bundles/private/tooling.js +2 -2
  18. package/bundles/src/bin/ng_xi18n.js +5 -5
  19. package/bundles/src/bin/ngc.js +5 -5
  20. package/bundles_metadata.json +1 -1
  21. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  22. package/package.json +3 -3
  23. package/src/ngtsc/docs/src/decorator_extractor.d.ts +15 -0
  24. package/src/ngtsc/docs/src/entities.d.ts +13 -2
  25. package/src/ngtsc/docs/src/jsdoc_extractor.d.ts +2 -2
  26. package/src/ngtsc/metadata/src/api.d.ts +1 -1
  27. package/src/ngtsc/translator/index.d.ts +1 -0
  28. package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +4 -1
  29. package/src/ngtsc/typecheck/src/environment.d.ts +2 -2
  30. package/bundles/chunk-Q5XOEMMF.js.map +0 -6
  31. package/bundles/chunk-YR36R26L.js.map +0 -6
  32. /package/bundles/{chunk-225M55ER.js.map → chunk-6WFRHXYB.js.map} +0 -0
  33. /package/bundles/{chunk-GTB2POO5.js.map → chunk-QFTMYSLL.js.map} +0 -0
  34. /package/bundles/{chunk-7BZJ2Z2V.js.map → chunk-VNJI35KB.js.map} +0 -0
  35. /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-YR36R26L.js";
10
+ } from "./chunk-QDHJ26RK.js";
11
11
  import {
12
12
  ClassMemberKind,
13
13
  ErrorCode,
@@ -30,7 +30,7 @@ import {
30
30
  reflectObjectLiteral,
31
31
  reflectTypeEntityToDeclaration,
32
32
  typeNodeToValueExpr
33
- } from "./chunk-RAK4OYZY.js";
33
+ } from "./chunk-CLTYCPJK.js";
34
34
  import {
35
35
  PerfEvent,
36
36
  PerfPhase
@@ -4829,7 +4829,10 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
4829
4829
  }
4830
4830
  const firstParam = ((_a = definition.parameters[0]) == null ? void 0 : _a.name) === "this" ? definition.parameters[1] : definition.parameters[0];
4831
4831
  if (!firstParam) {
4832
- return { node, type: ts20.factory.createKeywordTypeNode(ts20.SyntaxKind.UnknownKeyword) };
4832
+ return {
4833
+ node,
4834
+ type: new Reference(ts20.factory.createKeywordTypeNode(ts20.SyntaxKind.UnknownKeyword))
4835
+ };
4833
4836
  }
4834
4837
  if (!firstParam.type) {
4835
4838
  throw createValueHasWrongTypeError(value.node, value, "Input transform function first parameter must have a type");
@@ -4838,7 +4841,8 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
4838
4841
  throw createValueHasWrongTypeError(value.node, value, "Input transform function first parameter cannot be a spread parameter");
4839
4842
  }
4840
4843
  assertEmittableInputType(firstParam.type, clazz.getSourceFile(), reflector, refEmitter);
4841
- return { node, type: firstParam.type };
4844
+ const viaModule = value instanceof Reference ? value.bestGuessOwningModule : null;
4845
+ return { node, type: new Reference(firstParam.type, viaModule) };
4842
4846
  }
4843
4847
  function assertEmittableInputType(type, contextFile, reflector, refEmitter) {
4844
4848
  (function walk(node) {
@@ -7615,4 +7619,4 @@ export {
7615
7619
  * Use of this source code is governed by an MIT-style license that can be
7616
7620
  * found in the LICENSE file at https://angular.io/license
7617
7621
  */
7618
- //# sourceMappingURL=chunk-LPMZPYYV.js.map
7622
+ //# sourceMappingURL=chunk-6JN5EFEW.js.map