Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter type validation for JSDuck should allow all primitive literals #136

Open
jdforrester opened this issue Aug 4, 2015 · 2 comments

Comments

@jdforrester
Copy link

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 jdforrester changed the title Parameter type validation for JSDuck should allow non-binary literals Parameter type validation for JSDuck should allow non-boolean literals Aug 4, 2015
@jdforrester jdforrester changed the title Parameter type validation for JSDuck should allow non-boolean literals Parameter type validation for JSDuck should allow all primitive literals Aug 4, 2015
@Krinkle
Copy link

Krinkle commented Aug 4, 2015

👍

@qfox
Copy link
Member

qfox commented Aug 4, 2015

Filed an issue at jsdoctypeparser jsdoctypeparser/jsdoctypeparser#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants