mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
6370ca74d2
* refactor: resolve circular reference of Alert * Update useMenu.tsx fix lint * Update component-token.tsx fix lint * Update index.ts fix lint * Update list.ts fix lint * Update index.ts fix lint * Update index.zh-CN.md fix lint * Update component-token.tsx fix lint * Update index.test.tsx fix lint
16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import type { AlertProps } from './Alert';
|
|
import InternalAlert from './Alert';
|
|
import ErrorBoundary from './ErrorBoundary';
|
|
|
|
export type { AlertProps } from './Alert';
|
|
|
|
type CompoundedComponent = React.FC<AlertProps> & {
|
|
ErrorBoundary: typeof ErrorBoundary;
|
|
};
|
|
|
|
const Alert = InternalAlert as CompoundedComponent;
|
|
|
|
Alert.ErrorBoundary = ErrorBoundary;
|
|
|
|
export default Alert;
|