Skip to content

type definition for ParserBuildOptions does not allow plugin options #329

@cyberwombat

Description

@cyberwombat

The ParserBuildOptions type does not allow passing plugin options such as :

const parser = generate("start = ('a' / 'b')+", {
  output: 'source',
  format: 'es',
  plugins: [tspegjs],
  tspegjs: {   // <-- not allowed
    customHeader: 'foo'
  }
}) 

Metadata

Metadata

Assignees

Labels

blocks-releaseBlocks an imminent release. High Priorty.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions