mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
18 lines
411 B
TypeScript
18 lines
411 B
TypeScript
import type React from 'react';
|
|
|
|
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;
|