@skyux/docs-tools 5.0.0-beta.4 → 5.0.0-beta.5

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.
@@ -2711,30 +2711,43 @@
2711
2711
  var definitions = entry.children
2712
2712
  .filter(function (child) { return child.kindString === 'Property' || child.kindString === 'Accessor'; })
2713
2713
  .map(function (child) {
2714
- var _a, _b;
2715
- var comment;
2714
+ var _a, _b, _c;
2715
+ var definition = {
2716
+ isOptional: true,
2717
+ name: _this.getPropertyName(child),
2718
+ type: _this.getTypeDefinition(child)
2719
+ };
2720
+ var defaultValue;
2716
2721
  /* Ensure we are properly capturing definitions which use a getter/setter. Final check is a sanity check */
2717
2722
  if (child.kindString === 'Accessor' && !((_a = child.comment) === null || _a === void 0 ? void 0 : _a.shortText) && ((_b = child.getSignature) === null || _b === void 0 ? void 0 : _b.length) > 0) {
2718
- comment = child.getSignature[0].comment;
2723
+ var mainTags = _this.getCommentTags(child.comment);
2724
+ var getTags = _this.getCommentTags(child.getSignature[0].comment);
2725
+ _this.applyCommentTagValues(definition, mainTags);
2726
+ _this.applyCommentTagValues(definition, getTags);
2727
+ if (((_c = child.setSignature) === null || _c === void 0 ? void 0 : _c.length) > 0) {
2728
+ var setTags = _this.getCommentTags(child.setSignature[0].comment);
2729
+ _this.applyCommentTagValues(definition, setTags);
2730
+ definition.isOptional = !setTags.extras.required;
2731
+ defaultValue = _this.getDefaultValue(child, setTags);
2732
+ }
2733
+ else {
2734
+ definition.isOptional = !mainTags.extras.required;
2735
+ defaultValue = _this.getDefaultValue(child, mainTags);
2736
+ }
2719
2737
  }
2720
2738
  else {
2721
- comment = child.comment;
2739
+ var tags = _this.getCommentTags(child.comment);
2740
+ definition.isOptional = !tags.extras.required;
2741
+ _this.applyCommentTagValues(definition, tags);
2742
+ defaultValue = _this.getDefaultValue(child, tags);
2743
+ }
2744
+ if (defaultValue) {
2745
+ definition.defaultValue = defaultValue;
2722
2746
  }
2723
- var tags = _this.getCommentTags(comment);
2724
- var definition = {
2725
- isOptional: !tags.extras.required,
2726
- name: _this.getPropertyName(child),
2727
- type: _this.getTypeDefinition(child)
2728
- };
2729
- _this.applyCommentTagValues(definition, tags);
2730
2747
  var decorator = _this.getDecorator(child);
2731
2748
  if (decorator) {
2732
2749
  definition.decorator = decorator;
2733
2750
  }
2734
- var defaultValue = _this.getDefaultValue(child, tags);
2735
- if (defaultValue) {
2736
- definition.defaultValue = defaultValue;
2737
- }
2738
2751
  return definition;
2739
2752
  });
2740
2753
  return orderBy__default["default"](definitions, ['isOptional', 'name'], ['asc', 'asc']);