DataTable onRowSelectionChange implementation signature

Hi, Trying to implement onRowSelectionChange method and am looking at the documentation samples. IIn the code implemented and working it is written:

const myRowSelectionChangedListener = (
    selectedRows: Record<number, boolean>,
    selectedRowsData: unknown[],
    trigger: 'user' | 'internal'
  ) => {
    console.log('row selection obj', selectedRows);
    console.log('row selection data', selectedRowsData);
    console.log('trigger', trigger);
  };

however, the editor shows a different signature for the method within the DataTable

onRowSelectionChange?: (rows: unknown[]) => void;

Surely I’m missing something. What is it?

Gil.

Hi @gilgi,

The signature of this prop was changed in the latest version 0.107.0; see https://developer.dynatrace.com/whats-new/release-notes/design-system-preview-changelog.

Please update your dependencies using npm run update to be in sync with the documentation again.