You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#128 breaks code that includes the word typeof in a JSDoc comment without being the intended Closure feature, tsd-jsdoc outputs an error and fails.
Code like this:
/** * Breaks if test if typeof 'function' is included. * * @param {String} name Some param * @function */functionsomeFunction(name){}
Causes this output:
ERROR: Unable to parse a tag's type expression for source file /home/mamato/Git/CesiumGS/cesium/Source/Core/Check.js in line 1 with tag title "param" and text "{String>} name Some param": Invalid type expression "String>": Expected "!", "#", "$", "(", "-", ".", "/", "0", ":", "<", "=", "?", "@", "[]", "\\", "_", "|", "~", "", "", Unicode combining mark, Unicode decimal number, Unicode letter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode punctuation connector, Unicode titlecase letter, Unicode uppercase letter, [1-9], or end of input but ">" found.
ERROR: Unable to parse a tag's type expression for source file /home/mamato/Git/CesiumGS/cesium/Source/Core/Check.js in line 7 with tag title "param" and text "{String>} name Some param": Invalid type expression "String>": Expected "!", "#", "$", "(", "-", ".", "/", "0", ":", "<", "=", "?", "@", "[]", "\\", "_", "|", "~", "", "", Unicode combining mark, Unicode decimal number, Unicode letter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode punctuation connector, Unicode titlecase letter, Unicode uppercase letter, [1-9], or end of input but ">" found.
And then the entire process exits with a return code of 1.
The regex or approach to the feature needs to be tweaked to be less agressive.
To work around the issue in the short term, you can simple add a space, i.e. changing * Breaks if test if typeof 'function' is included. to * Breaks if test if type of 'function' is included. avoid the issues.
As discussed in #128 (comment).
#128 breaks code that includes the word
typeof
in a JSDoc comment without being the intended Closure feature, tsd-jsdoc outputs an error and fails.Code like this:
Causes this output:
And then the entire process exits with a return code of 1.
The regex or approach to the feature needs to be tweaked to be less agressive.
To work around the issue in the short term, you can simple add a space, i.e. changing
* Breaks if test if typeof 'function' is included.
to* Breaks if test if type of 'function' is included.
avoid the issues.CC @aidinabedi
The text was updated successfully, but these errors were encountered: