Skip to content

Commit 8e8077a

Browse files
vegedclaude
andcommitted
fix: remove empty @exports tags and fix invalid JSDoc type expression
Empty @exports tags cause jsdoc to fail with ESM files. Also fix {?...Object} → {...Object} in identify.vanilla.js. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3530eec commit 8e8077a

7 files changed

Lines changed: 5 additions & 8 deletions

File tree

common.blocks/events/__channels/events__channels.vanilla.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const channels = new Map()
99
export default
1010
/**
1111
* Returns/destroys a named communication channel
12-
* @exports
1312
* @param {String} [id='default'] Channel ID
1413
* @param {Boolean} [drop=false] Destroy the channel
1514
* @returns {events:Emitter|undefined} Communication channel

common.blocks/functions/functions.vanilla.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description A set of helpers to work with JavaScript functions
44
*/
55

6-
export default /** @exports */{
6+
export default {
77
/**
88
* Checks whether a given object is function
99
* @param {*} obj

common.blocks/i-bem/__internal/i-bem__internal.vanilla.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function buildElemClassName(block, name, modName, modVal) {
4747
buildModPostfix(modName, modVal)
4848
}
4949

50-
export default /** @exports */{
50+
export default {
5151
NAME_PATTERN,
5252

5353
MOD_DELIM,

common.blocks/identify/identify.vanilla.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const expando = '__' + (+new Date),
2525
export default
2626
/**
2727
* Makes unique ID
28-
* @exports
29-
* @param {?...Object} obj Object that needs to be identified
28+
* @param {...Object} obj Object that needs to be identified
3029
* @returns {String} ID
3130
*/
3231
function(obj) {

common.blocks/loader/_type/loader_type_bundle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const appendCss = (css) => {
3030

3131
/**
3232
* Loads bundle
33-
* @exports
3433
* @param {String} id
3534
* @param {String} url
3635
* @param {Function} onSuccess

common.blocks/objects/objects.vanilla.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description A set of helpers to work with JavaScript objects
44
*/
55

6-
export default /** @exports */{
6+
export default {
77
/**
88
* Extends a given target by
99
* @param {Object} target object to extend

common.blocks/strings/__escape/strings__escape.vanilla.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const symbols = {
1616
return str => ('' + str).replace(regexp, mapSymbol)
1717
}
1818

19-
export default /** @exports */{
19+
export default {
2020
/**
2121
* Escape string to use in XML
2222
* @type Function

0 commit comments

Comments
 (0)