mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
feat(ErrorBoundary): export ErrorBoundaryProps type (#55974)w
This commit is contained in:
@@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
|
||||
import Alert from './Alert';
|
||||
|
||||
interface ErrorBoundaryProps {
|
||||
export interface ErrorBoundaryProps {
|
||||
title?: React.ReactNode;
|
||||
/**
|
||||
* @deprecated please use `title` instead.
|
||||
|
||||
@@ -2,6 +2,7 @@ import InternalAlert from './Alert';
|
||||
import ErrorBoundary from './ErrorBoundary';
|
||||
|
||||
export type { AlertProps } from './Alert';
|
||||
export type { ErrorBoundaryProps } from './ErrorBoundary';
|
||||
|
||||
type CompoundedComponent = typeof InternalAlert & {
|
||||
ErrorBoundary: typeof ErrorBoundary;
|
||||
|
||||
@@ -6,7 +6,7 @@ export type { GetProp, GetProps, GetRef } from './_util/type';
|
||||
export { default as Affix } from './affix';
|
||||
export type { AffixProps, AffixRef } from './affix';
|
||||
export { default as Alert } from './alert';
|
||||
export type { AlertProps } from './alert';
|
||||
export type { AlertProps, ErrorBoundaryProps } from './alert';
|
||||
export { default as Anchor } from './anchor';
|
||||
export type { AnchorLinkProps, AnchorProps } from './anchor';
|
||||
export { default as App } from './app';
|
||||
|
||||
Reference in New Issue
Block a user