Skip to content

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

Open
@jdforrester

Description

@jdforrester

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}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions