ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

missing `abort` typing for `onSelect`

Open acdn-tsmith opened this issue 1 year ago • 0 comments

I have run across a typing issue when trying to consume the abort helper https://github.com/Addepar/ember-table/pull/918 with a multi select table. It doesn't appear that the typings have been updated: https://github.com/Addepar/ember-table/blob/master/types/components/ember-tbody/component.d.ts

I am using 5.0.6.

This is the error message I get.

Type '(selection: BlahModel | BlahModel[], { abort }: { ...; }) => void' is not assignable to type '(rows: BlahModel | BlahModel[]) => void'.
  Target signature provides too few arguments. Expected 2 or more, but got 1.

Thanks!

acdn-tsmith avatar Jan 09 '24 15:01 acdn-tsmith