ant-design/components/alert/index.ts
lijianan 4621bd9f5e
feat: Alert support id and ref (#48336)
* feat: Alert support id and ref

* test: add test case

* chore: adjust ts def

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2024-04-09 10:24:17 +08:00

15 lines
335 B
TypeScript

import InternalAlert from './Alert';
import ErrorBoundary from './ErrorBoundary';
export type { AlertProps } from './Alert';
type CompoundedComponent = typeof InternalAlert & {
ErrorBoundary: typeof ErrorBoundary;
};
const Alert = InternalAlert as CompoundedComponent;
Alert.ErrorBoundary = ErrorBoundary;
export default Alert;