I just noticed that the expected function signature for a function to be passed to the groupBy property of mtx-select is () => void. That seems wrong since I would expect it to take the item and return a value, e.g. something like (item: unknown) => unknown.
I just noticed that the expected function signature for a function to be passed to the
groupBy
property ofmtx-select
is() => void
. That seems wrong since I would expect it to take the item and return a value, e.g. something like(item: unknown) => unknown
.Looking it up, the property is just forwarded to ng-select and if I look at https://github.com/ng-select/ng-select/blob/master/src/demo/app/examples/group-function-example/group-function-example.component.ts it seems that the groupBy function should take the item and return a value.
So I would suggest to change the signature of
to