Skip to content

Strict Typescript Options cause error output #499

@jtenner

Description

@jtenner
src/parser/grammar.ts(38,68): error TS6133: 'd' is declared but its value is never read.
src/parser/grammar.ts(41,70): error TS6133: 'd' is declared but its value is never read.

The workaround of course is to change my typescript config to:

{
  "noUnusedParameters": false
}

The offending rules are:

{
  ParserRules: [
    // ...
    {"name": "_", "symbols": ["_$ebnf$1"], "postprocess": function(d) {return null;}},
    // ... and
    {"name": "__$ebnf$1", "symbols": ["__$ebnf$1", "wschar"], "postprocess": (d) => d[0].concat([d[1]])},
   // ...
  ]
}

It would be nice to be able to avoid this problem though. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions