gnir-work / react-window-dynamic-list

A naive approach to virtualizing a dynamically sized list
49 stars 9 forks source link

Wrong parameter declaration for measurementContainerElement in TS #24

Closed my3188 closed 3 years ago

my3188 commented 3 years ago

node_modules\react-window-dynamic-list\types\index.d.ts measurementContainerElement?: (style: CSSProperties, children: ReactChildren) => ReactNode;

should be : measurementContainerElement?: ({ style, children }: {style: CSSProperties, children: ReactChildren}) => ReactNode;

gnir-work commented 3 years ago

Hey, sorry for the late update. I will take a look at it tomorow / the next week :)

gnir-work commented 3 years ago

Fixed in the following PR :) You can update to latest version npm i react-window-dynamic-list@2.4.0 in order to recieve the changes. I am closing the issue for now, in case something else pops up you are more than welcomed to reopen it.