react-virtuoso 2.13.3 → 2.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -482,7 +482,7 @@ export declare interface TableVirtuosoProps<D, C> extends Omit<VirtuosoProps<D,
482
482
  *
483
483
  * The default implementation reads `el.getBoundingClientRect().height` and `el.getBoundingClientRect().width`.
484
484
  */
485
- itemSize?: (el: HTMLElement, field: 'offsetHeight' | 'offsetWidth') => number;
485
+ itemSize?: (el: HTMLElement, dimension: 'height' | 'width') => number;
486
486
  /**
487
487
  * Can be used to improve performance if the rendered items are of known size.
488
488
  * Setting it causes the component to skip item measurements.
@@ -793,7 +793,7 @@ export declare interface VirtuosoProps<D, C> extends ListRootProps {
793
793
  *
794
794
  * The default implementation reads `el.getBoundingClientRect().height` and `el.getBoundingClientRect().width`.
795
795
  */
796
- itemSize?: (el: HTMLElement, field: 'offsetHeight' | 'offsetWidth') => number;
796
+ itemSize?: (el: HTMLElement, dimension: 'height' | 'width') => number;
797
797
  /**
798
798
  * Can be used to improve performance if the rendered items are of known size.
799
799
  * Setting it causes the component to skip item measurements.