jscs-jsdoc icon indicating copy to clipboard operation
jscs-jsdoc copied to clipboard

Parameter type validation for JSDuck should allow all primitive literals

Open jdforrester opened this issue 10 years ago • 2 comments

Per the JSDuck documentation, values can be literals of booleans, numbers or strings. However, only the first of these works.

Literals which work

  • {true}
  • {false}
  • {true|false}

Literals which fail

  • {'foo'}
  • {"bar"}
  • {'foo'|"bar"}
  • {42}
  • {42|24}

jdforrester avatar Aug 04 '15 02:08 jdforrester

:+1:

Krinkle avatar Aug 04 '15 02:08 Krinkle

Filed an issue at jsdoctypeparser Kuniwak/jsdoctypeparser#16

qfox avatar Aug 04 '15 10:08 qfox