Skip to content

incorrect types for multiple plucks #136

@joshuahhh

Description

@joshuahhh

https://peggyjs.org/documentation.html#pluck says "There may be multiple pluck expressions in a given rule, in which case an array of the plucked expressions is returned from the rule."

And indeed, when I compile

Expression
  = @"1" @"2"

I can parse "12" to ["1", "2"]. But from ts-pegjs I get:

// These types were autogenerated by ts-pegjs
export type Expression = "1";

Might be related to #122?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions