feat(ErrorBoundary): export ErrorBoundaryProps type (#55974)w

This commit is contained in:
Guo Yunhe
2025-11-28 17:23:42 +08:00
committed by GitHub
parent 18a8dadfaa
commit 964e21fc62
3 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -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';