@skyux/docs-tools 6.0.0-beta.7 → 6.0.0-beta.8

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.
@@ -1350,7 +1350,11 @@ class SkyDocsTypeDefinitionsFormatService {
1350
1350
  return formatted;
1351
1351
  }
1352
1352
  if (type.callSignature) {
1353
- return this.getFormattedCallSignature(type.callSignature, config);
1353
+ let formattedSignature = this.getFormattedCallSignature(type.callSignature, config);
1354
+ if (type.type === 'array') {
1355
+ formattedSignature = `(${formattedSignature})[]`;
1356
+ }
1357
+ return formattedSignature;
1354
1358
  }
1355
1359
  if (type.unionTypes) {
1356
1360
  return this.getFormattedUnion(type, config);
@@ -2390,8 +2394,11 @@ class SkyDocsTypeDocAdapterService {
2390
2394
  definition.unionTypes = child.type.types.map((t) => this.getTypeDefinition({ type: t }));
2391
2395
  }
2392
2396
  // Convert reflection types.
2393
- if (child.type.type === 'reflection') {
2394
- const declaration = child.type.declaration;
2397
+ if (child.type.type === 'reflection' ||
2398
+ child.type.elementType?.type === 'reflection') {
2399
+ const declaration = child.type.elementType?.type === 'reflection'
2400
+ ? child.type.elementType.declaration
2401
+ : child.type.declaration;
2395
2402
  /*istanbul ignore else */
2396
2403
  if (declaration) {
2397
2404
  if (declaration.signatures) {