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
When using an empty object as a default parameter, in a function, a method, or a constructor, I get the following errors, with [email protected] and [email protected]:
jsDoc: Function is missing documentation for parameter `undefined`. at [...]
30 | * @returns {AudioBuffer}
31 | */
32 |export function createDiracBuffer(options = {}) {
jsDoc: Function is missing documentation for parameter `undefined`. at [...]
140 | * @returns {Array.<String>} URLs that match every filter.
141 | */
142 | getUrls(options = {}) {
jsDoc: Function is missing documentation for parameter `undefined`. at [...]
58 |
59 | */
60 | constructor(options = {}) {
/** * Create a Dirac buffer, zero-padded. * * Warning: the default length is 2 samples, * to by-pass a bug in Safari ≤ 9. * * @param {Object} options * @param {AudioContext} options.audioContext must be defined * @param {Number} [options.channelCount=1] * @param {Number} [options.gain=0] in dB * @param {Number} [options.length=2] in samples * @returns {AudioBuffer} */exportfunctioncreateDiracBuffer(options={}){
Am I missing a configuration somewhere?
The text was updated successfully, but these errors were encountered:
Looks like there is an error with wrong calculating line in checkAnnotations. This rule requires description for EVERY param in your jsdoc. You have 2 lines with missing description: @param {Object} options and @param {Number} [options.channelCount=1]. Also I'm not sure about @returns, prob it requires description too.
You can safely disable this rule to prevent errors of this kind.
Hi,
When using an empty object as a default parameter, in a function, a method, or a constructor, I get the following errors, with [email protected] and [email protected]:
With the configuration
And yes,
option
is defined:Am I missing a configuration somewhere?
The text was updated successfully, but these errors were encountered: