kungfooman / RuntimeTypeInspector.js

Checking JSDoc types at runtime for high-quality types - Trust is good, control is better.
MIT License
8 stars 0 forks source link

Error in JSDoc parsing #172

Closed kungfooman closed 3 weeks ago

kungfooman commented 3 weeks ago

Probably the optional value RegExp is too strict.

Example:

/**
 * @param {Object} options
 * @param {number} [options.mel_floor=1e-10] Minimum value...
 * @param {number} [options.min_value=1e-10] The spectrogram...
 */
function test(options) {
  console.log('options', options);
}

Error:

parseJSDoc.js:59 parseJSDoc> Skipping @param, unseen syntax detected. Please check if your JSDoc is valid or open an issue about this! 

RTI REPL