@progress/kendo-typescript-tasks 10.0.21-ng12.50 → 10.0.21-ng12.54

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.
package/api.config.js CHANGED
@@ -2,7 +2,7 @@ const path = require('path');
2
2
 
3
3
  const jsonPath = path.resolve('./api.json');
4
4
  const typedoc = {
5
- excludeExternals: true
5
+ excludeExternals: false
6
6
  };
7
7
 
8
8
  module.exports = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@progress/kendo-typescript-tasks",
3
3
  "description": "Kendo UI TypeScript package gulp tasks",
4
4
  "main": "gulp-tasks.js",
5
- "version": "10.0.21-ng12.50+da768fb",
5
+ "version": "10.0.21-ng12.54+6c8a690",
6
6
  "author": "Telerik",
7
7
  "license": "Apache-2.0",
8
8
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "typescript": "^4.3.4"
19
19
  },
20
20
  "dependencies": {
21
- "@progress/kendo-common-tasks": "7.9.5-ng12.50+da768fb",
21
+ "@progress/kendo-common-tasks": "7.9.5-ng12.54+6c8a690",
22
22
  "@typescript-eslint/eslint-plugin": "4.28.2",
23
23
  "@typescript-eslint/parser": "4.28.2",
24
24
  "core-js": "^3.18.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "da768fb196314b6b521c76067b37344d09a6a4fd"
51
+ "gitHead": "6c8a690690862d5752a2ac2e54e53a20f72a7cfb"
52
52
  }
@@ -3,6 +3,7 @@
3
3
  const template = require('./template-utils.js');
4
4
  const slug = require('./slug.js');
5
5
  const warn = require('./warn.js');
6
+ const utils = require('./utils.js');
6
7
 
7
8
  const commentTemplate = template.compileFrom('comment-tags.hbs');
8
9
 
@@ -27,7 +28,7 @@ const commentTags = (comment, member) =>
27
28
  });
28
29
 
29
30
  const formatComment = (member, parentName, memberKind) => {
30
- const comment = member.comment;
31
+ const comment = utils.extractComment(member);
31
32
  if (!comment) {
32
33
  warn(member, parentName, memberKind);
33
34
 
@@ -155,7 +155,7 @@ const extractMembers = (packageName, modules, config) => {
155
155
  id: child.id,
156
156
  module: moduleRoot(module.name, rootModules),
157
157
  name: child.name,
158
- comment: child.comment,
158
+ comment: utils.extractComment(child),
159
159
  children: child.children,
160
160
  decorators: child.decorators,
161
161
  type: child.type,
@@ -100,7 +100,7 @@ const singleTypeString = (type) => {
100
100
  const decl = type.declaration;
101
101
  if (decl.signatures) {
102
102
  const sig = decl.signatures[0];
103
- if (decl.name === '__type' && sig.name === '__call') {
103
+ if (decl.name === '__type' && sig.kindString === 'Call signature') {
104
104
  return callType(sig);
105
105
  }
106
106
  } else if (decl.indexSignature) {
package/src/api/utils.js CHANGED
@@ -27,6 +27,8 @@ const warn = (type, text) => {
27
27
  console.warn(msg);
28
28
  };
29
29
 
30
+ const extractComment = (member) => member.comment || member.type?.declaration?.signatures[0].comment;
31
+
30
32
  module.exports = {
31
33
  groupBy: groupBy,
32
34
  flatten: flatten,
@@ -35,6 +37,7 @@ module.exports = {
35
37
  warnings: () => WARNINGS,
36
38
  not: not,
37
39
  ignore: ignore,
38
- hasProp: hasProp
40
+ hasProp: hasProp,
41
+ extractComment: extractComment
39
42
  };
40
43