We're currently working on a table powered by React Virtualized and using TypeScript.
At the moment we're looking at making a custom row render.
We started off by looking at the implementation of the defaultRowRenderer
.
We took that code and started modifying it to our needs, and we noticed that there are two props it expects that aren't defined in the @types/react-virtualised type definitions.
key
, and onRowRightClick
.
So we dug a bit deeper and had a look at the types.js
which is in the same directory as defaultRowRenderer.js
and found that babelPluginFlowReactPropTypes_proptype_RowRendererParams
also doesn't define those props.
We then had a look at the Grid
and List
folders, and their types.js
files do contain the key
prop in babelPluginFlowReactPropTypes_proptype_RowRendererParams
(List) and babelPluginFlowReactPropTypes_proptype_CellRendererParams
(Grid).
Should key
, and onRowRightClick
be defined in Table/types.js
.
And if so is the fact they are missing the reason that they're also missing in the TypeScript definitions?
Or am I miss-reading the entire lot? ;)