mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 14:44:47 +08:00
7d66a8e5cf
* fix: table generic default any * feat: = AnyObject
20 lines
683 B
TypeScript
20 lines
683 B
TypeScript
import type * as React from 'react';
|
|
|
|
import type { AnyObject } from '../_util/type';
|
|
import type { ColumnProps } from './Column';
|
|
import type { ColumnType } from './interface';
|
|
|
|
export interface ColumnGroupProps<RecordType = AnyObject>
|
|
extends Omit<ColumnType<RecordType>, 'children'> {
|
|
children:
|
|
| React.ReactElement<ColumnProps<RecordType>>
|
|
| React.ReactElement<ColumnProps<RecordType>>[];
|
|
}
|
|
|
|
/* 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 ColumnGroup = <RecordType extends AnyObject>(_: ColumnGroupProps<RecordType>) => null;
|
|
|
|
export default ColumnGroup;
|