Added Flow annotations to memoized methods to avoid a Flow warning for newer versions of Flow

This commit is contained in:
Brian Vaughn
2018-11-03 17:41:14 -07:00
parent d8b1077fa3
commit bd23795bb0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -500,7 +500,7 @@ export default function createGridComponent({
};
_getItemStyleCache: (_: any, __: any) => ItemStyleCache;
_getItemStyleCache = memoizeOne((_, __) => ({}));
_getItemStyleCache = memoizeOne((_: any, __: any) => ({}));
_getHorizontalRangeToRender(): [number, number, number, number] {
const { columnCount, overscanCount, rowCount } = this.props;
+1 -1
View File
@@ -410,7 +410,7 @@ export default function createListComponent({
};
_getItemStyleCache: (_: any) => ItemStyleCache;
_getItemStyleCache = memoizeOne(_ => ({}));
_getItemStyleCache = memoizeOne((_: any) => ({}));
_getRangeToRender(): [number, number, number, number] {
const { itemCount, overscanCount } = this.props;