@angular/compiler-cli 18.0.2 → 18.0.4

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.
@@ -44,7 +44,7 @@ import {
44
44
  isHostDirectiveMetaForGlobalMode,
45
45
  ivyTransformFactory,
46
46
  tryParseInitializerApi
47
- } from "./chunk-HGUKV37D.js";
47
+ } from "./chunk-6URKYGDE.js";
48
48
  import {
49
49
  AbsoluteModuleStrategy,
50
50
  AliasStrategy,
@@ -94,7 +94,7 @@ import {
94
94
  toUnredirectedSourceFile,
95
95
  translateExpression,
96
96
  translateType
97
- } from "./chunk-RZ7P6VD7.js";
97
+ } from "./chunk-BLUBTRCD.js";
98
98
  import {
99
99
  ActivePerfRecorder,
100
100
  DelegatingPerfRecorder,
@@ -274,17 +274,20 @@ var FunctionExtractor = class {
274
274
  this.typeChecker = typeChecker;
275
275
  }
276
276
  extract() {
277
+ var _a;
277
278
  const signature = this.typeChecker.getSignatureFromDeclaration(this.declaration);
278
279
  const returnType = signature ? this.typeChecker.typeToString(this.typeChecker.getReturnTypeOfSignature(signature)) : "unknown";
280
+ const jsdocsTags = extractJsDocTags(this.declaration);
279
281
  return {
280
282
  params: extractAllParams(this.declaration.parameters, this.typeChecker),
281
283
  name: this.name,
282
284
  isNewType: ts3.isConstructSignatureDeclaration(this.declaration),
283
285
  returnType,
286
+ returnDescription: (_a = jsdocsTags.find((tag) => tag.name === "returns")) == null ? void 0 : _a.comment,
284
287
  entryType: EntryType.Function,
285
288
  generics: extractGenerics(this.declaration),
286
289
  description: extractJsDocDescription(this.declaration),
287
- jsdocTags: extractJsDocTags(this.declaration),
290
+ jsdocTags: jsdocsTags,
288
291
  rawComment: extractRawJsDoc(this.declaration)
289
292
  };
290
293
  }
@@ -10803,4 +10806,4 @@ export {
10803
10806
  * Use of this source code is governed by an MIT-style license that can be
10804
10807
  * found in the LICENSE file at https://angular.io/license
10805
10808
  */
10806
- //# sourceMappingURL=chunk-BOT54HZ5.js.map
10809
+ //# sourceMappingURL=chunk-4B53GUJY.js.map