ant-design/components/avatar/index.ts
lijianan 854cdb4352
type: optimize CompoundedComponent type (#48346)
* type: optimize CompoundedComponent type

* chore: fix

* type: fix type

* chore: fix

* type: fix type

* type: add ts-ignore

* fix: fix

* chore: revert
2024-04-09 16:49:47 +08:00

17 lines
357 B
TypeScript

import InternalAvatar from './avatar';
import Group from './group';
export type { AvatarProps } from './avatar';
export type { GroupProps } from './group';
export { Group };
type CompoundedComponent = typeof InternalAvatar & {
Group: typeof Group;
};
const Avatar = InternalAvatar as CompoundedComponent;
Avatar.Group = Group;
export default Avatar;