ant-design/components/card/index.tsx
Long Hao (龙濠) c644371533
fix: the ts wrong of card inteface (#35753)
* fix: the ts wrong of card inteface

* fix: add export cardproprs

* feat: add card type test
2022-05-26 20:50:16 +08:00

23 lines
477 B
TypeScript

import Grid from './Grid';
import Meta from './Meta';
import InternalCard from './Card';
export { CardGridProps } from './Grid';
export { CardMetaProps } from './Meta';
export { CardProps, CardTabListType } from './Card';
type InternalCardType = typeof InternalCard;
export interface CardInterface extends InternalCardType {
Grid: typeof Grid;
Meta: typeof Meta;
}
const Card = InternalCard as CardInterface;
Card.Grid = Grid;
Card.Meta = Meta;
export default Card;