ant-design/components/card/index.ts
Dunqing f0c105d262
feat: insert use client automatically at compilations instead of hardcode (#44608)
* feat: remove the hardcode of `use client`

* chore: update `@ant-design/tools`

* test: update

* fix: incorrect dictionary

* chore: update dep

* ci: check use client

* chore: update ci

* fix: should be LIB_DIR

* ci: should only run in dist

* chore: update check tsx files
2023-09-04 19:27:20 +08:00

26 lines
568 B
TypeScript

import InternalCard from './Card';
import Grid from './Grid';
import Meta from './Meta';
export type { CardProps, CardTabListType } from './Card';
export type { CardGridProps } from './Grid';
export type { CardMetaProps } from './Meta';
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;
if (process.env.NODE_ENV !== 'production') {
Card.displayName = 'Card';
}
export default Card;