ant-design/components/table/Column.ts

14 lines
464 B
TypeScript
Raw Normal View History

import type { AnyObject } from '../_util/type';
import type { ColumnType } from './interface';
2020-01-06 17:28:28 +08:00
export interface ColumnProps<RecordType = AnyObject> extends ColumnType<RecordType> {
2020-01-06 17:28:28 +08:00
children?: null;
}
/* istanbul ignore next */
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
2020-01-06 17:28:28 +08:00
// eslint-disable-next-line no-unused-vars
const Column = <RecordType extends AnyObject>(_: ColumnProps<RecordType>) => null;
2020-01-06 17:28:28 +08:00
export default Column;