mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 12:10:06 +08:00
481fd209e2
* chore: 🆙 upgrade typescript-eslint * fix some lint * fix: some eslint errors * Update package.json * chore: 🆙 upgrade typescript-eslint * fix some lint * fix: some eslint errors * Update package.json * fix no use before define * Update package.json * fix lint Co-authored-by: yoyo837 <yoyo837@hotmail.com> Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
import * as React from 'react';
|
|
import { ColumnType } from './interface';
|
|
import { ColumnProps } from './Column';
|
|
|
|
export interface ColumnGroupProps<RecordType> 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
|
|
function ColumnGroup<RecordType>(_: ColumnGroupProps<RecordType>) {
|
|
return null;
|
|
}
|
|
|
|
export default ColumnGroup;
|