fix: table export `ColumnProps` (#21321)

pull/21325/head
Artin 5 years ago committed by GitHub
parent 4192c1f6d9
commit 297c3961ea

@ -2,6 +2,7 @@
import * as React from 'react';
import Table from '../Table';
import { ColumnProps } from '..';
const { Column, ColumnGroup } = Table;
@ -27,4 +28,20 @@ describe('Table.typescript', () => {
});
});
describe('Table.typescript types', () => {
it('ColumnProps', () => {
interface User {
name: string;
}
const columns: ColumnProps<User>[] = [
{
title: 'Name',
dataIndex: 'name',
},
];
expect(columns).toBeTruthy();
});
});
/* eslint-enable */

@ -1,5 +1,6 @@
import Table, { TableProps, TablePaginationConfig } from './Table';
export { ColumnProps } from './Column';
export { ColumnsType, ColumnType, ColumnGroupType } from './interface';
export { TableProps, TablePaginationConfig };

Loading…
Cancel
Save