Flow: well_formed_exports for devtools (#25266)

This commit is contained in:
Jan Kassens
2022-09-15 16:45:29 -04:00
committed by GitHub
parent 0b54e00475
commit fc16293f3f
50 changed files with 323 additions and 190 deletions
@@ -191,7 +191,7 @@ export default function createGridComponent({
initInstanceProps: InitInstanceProps,
shouldResetStyleCacheOnItemSizeChange: boolean,
validateProps: ValidateProps,
|}) {
|}): React.ComponentType<Props<mixed>> {
return class Grid<T> extends PureComponent<Props<T>, State> {
_instanceProps: any = initInstanceProps(this.props, this);
_resetIsScrollingTimeoutId: TimeoutID | null = null;
@@ -156,7 +156,7 @@ export default function createListComponent({
initInstanceProps: InitInstanceProps,
shouldResetStyleCacheOnItemSizeChange: boolean,
validateProps: ValidateProps,
|}) {
|}): React.ComponentType<Props<$FlowFixMe>> {
return class List<T> extends PureComponent<Props<T>, State> {
_instanceProps: any = initInstanceProps(this.props, this);
_outerRef: ?HTMLDivElement;