@progress/kendo-typescript-tasks 10.0.21-ng12.49 → 10.0.21-ng12.56

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.49+53fe759",
5
+ "version": "10.0.21-ng12.56+c7b0fa3",
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.49+53fe759",
21
+ "@progress/kendo-common-tasks": "7.9.5-ng12.56+c7b0fa3",
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": "53fe75953b09176f7d188c57660bddc7d07a90e8"
51
+ "gitHead": "c7b0fa3409fe1d31357d77a191e1352f7acc1f49"
52
52
  }
@@ -27,7 +27,7 @@ const commentTags = (comment, member) =>
27
27
  });
28
28
 
29
29
  const formatComment = (member, parentName, memberKind) => {
30
- const comment = member.comment;
30
+ const comment = member.comment || member.type?.declaration?.signatures[0].comment;
31
31
  if (!comment) {
32
32
  warn(member, parentName, memberKind);
33
33
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- const comment = require('./comment');
3
+ const getComment = require('./comment');
4
4
  const types = require('./type-utils');
5
5
  const isConstructor = require('./is-constructor');
6
6
  const isEvent = require('./is-event');
@@ -21,6 +21,7 @@ const isProp = (prop) => isPublic(prop) && !isConstructor(prop) && !isMethod(pro
21
21
  const mapProps = (children, parentName) =>
22
22
  children.filter(isProp).map(prop => {
23
23
  let type;
24
+ let comment = getComment(prop, parentName);
24
25
  if (prop.type) {
25
26
  type = types.typeString(prop);
26
27
  } else if (prop.kindString === 'Accessor') {
@@ -28,12 +29,13 @@ const mapProps = (children, parentName) =>
28
29
  const setter = prop.setSignature;
29
30
 
30
31
  // Fingers crossed
31
- type = types.typeString(getter ?
32
- accessor(getter) :
33
- accessor(setter).parameters[0]
32
+ type = types.typeString(setter ?
33
+ accessor(setter).parameters[0] :
34
+ accessor(getter)
34
35
  );
35
36
  } else if (prop.kindString === 'Method') {
36
37
  type = types.callType(prop.signatures[0]);
38
+ comment = getComment(prop.signatures[0], parentName);
37
39
  }
38
40
 
39
41
  let name = prop.name;
@@ -53,7 +55,7 @@ const mapProps = (children, parentName) =>
53
55
  name: name,
54
56
  type: type,
55
57
  defaultValue: defaultValue(prop),
56
- comment: comment(prop, parentName)
58
+ comment: comment
57
59
  };
58
60
  });
59
61
 
@@ -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) {