Update typescript to 4.9.5
Reviewed By: passy Differential Revision: D46068908 fbshipit-source-id: 4c1ffff8690eec5a10c67d6c5d1aacf224e0f0d4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d6b852d435
commit
fda21e96e8
@@ -32,7 +32,7 @@ import {theme} from '../theme';
|
||||
const {Item, SubMenu} = Menu;
|
||||
const {Option} = Select;
|
||||
|
||||
export function tableContextMenuFactory<T>(
|
||||
export function tableContextMenuFactory<T extends object>(
|
||||
dataView: _DataSourceView<T, T[keyof T]>,
|
||||
dispatch: DataTableDispatch<T>,
|
||||
selection: Selection,
|
||||
@@ -282,7 +282,7 @@ function friendlyColumnTitle(column: DataTableColumn<any>): string {
|
||||
return toFirstUpper(name);
|
||||
}
|
||||
|
||||
function defaultOnCopyRows<T>(
|
||||
function defaultOnCopyRows<T extends object>(
|
||||
items: T[],
|
||||
visibleColumns: DataTableColumn<T>[],
|
||||
) {
|
||||
|
||||
@@ -104,7 +104,7 @@ type TableRowProps<T> = {
|
||||
style?: CSSProperties;
|
||||
};
|
||||
|
||||
export const TableRow = memo(function TableRow<T>({
|
||||
export const TableRow = memo(function TableRow<T extends object>({
|
||||
record,
|
||||
itemIndex,
|
||||
highlighted,
|
||||
@@ -155,7 +155,7 @@ export const TableRow = memo(function TableRow<T>({
|
||||
}
|
||||
});
|
||||
|
||||
export function renderColumnValue<T>(
|
||||
export function renderColumnValue<T extends object>(
|
||||
col: DataTableColumn<any>,
|
||||
record: T,
|
||||
highlighted: boolean,
|
||||
|
||||
Reference in New Issue
Block a user