mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
7d66a8e5cf
* fix: table generic default any * feat: = AnyObject
14 lines
464 B
TypeScript
14 lines
464 B
TypeScript
import type { AnyObject } from '../_util/type';
|
|
import type { ColumnType } from './interface';
|
|
|
|
export interface ColumnProps<RecordType = AnyObject> extends ColumnType<RecordType> {
|
|
children?: null;
|
|
}
|
|
|
|
/* istanbul ignore next */
|
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
|
// eslint-disable-next-line no-unused-vars
|
|
const Column = <RecordType extends AnyObject>(_: ColumnProps<RecordType>) => null;
|
|
|
|
export default Column;
|