ban interface usage for component props and state
Summary: another eslint rule for flipper codebase Reviewed By: passy Differential Revision: D33917213 fbshipit-source-id: e60b867d359ef5b94a481edf0eda318ecff17eee
This commit is contained in:
committed by
Facebook GitHub Bot
parent
59b11c5f12
commit
f2abbf63db
@@ -53,7 +53,7 @@ import {debounce} from 'lodash';
|
||||
import {useInUnitTest} from '../../utils/useInUnitTest';
|
||||
import {createDataSource} from '../../state/createDataSource';
|
||||
|
||||
interface DataTableBaseProps<T = any> {
|
||||
type DataTableBaseProps<T = any> = {
|
||||
columns: DataTableColumn<T>[];
|
||||
enableSearchbar?: boolean;
|
||||
enableAutoScroll?: boolean;
|
||||
@@ -73,7 +73,7 @@ interface DataTableBaseProps<T = any> {
|
||||
onRenderEmpty?:
|
||||
| null
|
||||
| ((dataSource?: DataSource<T, T[keyof T]>) => React.ReactElement);
|
||||
}
|
||||
};
|
||||
|
||||
export type ItemRenderer<T> = (
|
||||
item: T,
|
||||
|
||||
Reference in New Issue
Block a user