aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

Spread operator bug #185

Open smajl opened 6 years ago

smajl commented 6 years ago

Hi there, wanna report a bug, very simple - spread operator breaks everything after it:

one(): void {
  const x = {a: 1, ...someObject};
  console.log(x);
}

two(): void {}
<button click.delegate="one()">x</button>
<button click.delegate="two()">y</button> // cannot find 'two' (and everything bellow) in type 'foo'