@progress/kendo-typescript-tasks 11.1.1-dev.3 → 11.1.1-dev.6
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/package.json +3 -3
- package/src/api/generator.js +1 -1
- package/src/api/methods.hbs +2 -2
- package/src/api/type-utils.js +4 -0
- package/test/api.js +1 -1
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": "11.1.1-dev.
|
|
5
|
+
"version": "11.1.1-dev.6+7a0739d",
|
|
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": "8.0.1-dev.
|
|
21
|
+
"@progress/kendo-common-tasks": "8.0.1-dev.8+7a0739d",
|
|
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": "
|
|
51
|
+
"gitHead": "7a0739d9430b3f3ef9312d67b6853833fd55cf1d"
|
|
52
52
|
}
|
package/src/api/generator.js
CHANGED
|
@@ -148,7 +148,7 @@ const extractMembers = (packageName, modules, config) => {
|
|
|
148
148
|
.children
|
|
149
149
|
.filter(child => child.kindString !== "Reference")
|
|
150
150
|
.filter(child => child.name !== 'core')
|
|
151
|
-
.filter(child => !child.sources[0].fileName.includes('prosemirror'))
|
|
151
|
+
.filter(child => child.sources && !child.sources[0].fileName.includes('prosemirror'))
|
|
152
152
|
.map(child => {
|
|
153
153
|
const fullName = moduleFullName(module.name, packageName, rootModules);
|
|
154
154
|
|
package/src/api/methods.hbs
CHANGED
|
@@ -68,8 +68,6 @@
|
|
|
68
68
|
</tbody>
|
|
69
69
|
</table>
|
|
70
70
|
{{/if}}
|
|
71
|
-
</tbody>
|
|
72
|
-
</table>
|
|
73
71
|
|
|
74
72
|
{{#if returns}}
|
|
75
73
|
<table class="api-table api-table-returns">
|
|
@@ -105,6 +103,8 @@
|
|
|
105
103
|
</tbody>
|
|
106
104
|
</table>
|
|
107
105
|
{{/if}}
|
|
106
|
+
</tbody>
|
|
107
|
+
</table>
|
|
108
108
|
|
|
109
109
|
{{/each}}
|
|
110
110
|
|
package/src/api/type-utils.js
CHANGED
|
@@ -139,6 +139,10 @@ const singleTypeString = (type) => {
|
|
|
139
139
|
const typeString = (prop) => {
|
|
140
140
|
const type = prop.type;
|
|
141
141
|
|
|
142
|
+
if (!type && prop.kindString === 'Method') {
|
|
143
|
+
return singleTypeString(prop.signatures[0]);
|
|
144
|
+
}
|
|
145
|
+
|
|
142
146
|
if (type.type === 'union') {
|
|
143
147
|
return unionTypes(prop).join(' | ');
|
|
144
148
|
}
|
package/test/api.js
CHANGED
|
@@ -107,7 +107,7 @@ describe('API generation', () => {
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
it('adds methods', () => {
|
|
110
|
-
const pageContent = `## Methods\n\n<table class="api-table api-table-methods">\n<thead class="api-table-methods-head">\n<tr>\n<th>\n\n\nget\n\n\n</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td>\n\n\nGets the value of the specified option.\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
110
|
+
const pageContent = `## Methods\n\n<table class="api-table api-table-methods">\n<thead class="api-table-methods-head">\n<tr>\n<th>\n\n\nget\n\n\n</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td>\n\n\nGets the value of the specified option.\n\n\n</td>\n</tr>\n\n<table class="api-table api-table-returns">\n<thead class="api-table-returns-head">\n<tr>\n<th class="th-type">\n\n\n##### Returns\n\n\n</th>\n<th class="th-desc"></th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td type>\n\n\nany\n\n\n</td>\n<td>\n\n\nThe current option value.\n\n\n</td>\n</tr>\n</tbody>\n</table>\n</tbody>\n</table>`;
|
|
111
111
|
expect(page).toContain(pageContent);
|
|
112
112
|
});
|
|
113
113
|
|