@servicetitan/error-boundary
Advanced tools
Comparing version 23.0.0 to 23.1.0
@@ -1,9 +0,9 @@ | ||
import { Component, ComponentType } from 'react'; | ||
import { Component, ComponentType, PropsWithChildren } from 'react'; | ||
export interface FallbackProps { | ||
onRefresh?: () => void; | ||
} | ||
interface ErrorBoundaryProps { | ||
declare type ErrorBoundaryProps = PropsWithChildren<{ | ||
moduleName: string; | ||
fallback?: ComponentType<FallbackProps>; | ||
} | ||
}>; | ||
export declare class ErrorBoundary extends Component<ErrorBoundaryProps> { | ||
@@ -15,5 +15,5 @@ state: { | ||
componentDidCatch(error: Error): void; | ||
render(): import("react").ReactNode; | ||
render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined; | ||
} | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@servicetitan/error-boundary", | ||
"version": "23.0.0", | ||
"version": "23.1.0", | ||
"description": "", | ||
@@ -19,11 +19,11 @@ "homepage": "https://docs.st.dev/docs/frontend/error-boundary", | ||
"devDependencies": { | ||
"@servicetitan/log-service": "23.0.0", | ||
"@servicetitan/react-ioc": "23.0.0", | ||
"@types/react": "~17.0.38", | ||
"react": "~17.0.2" | ||
"@servicetitan/log-service": "23.1.0", | ||
"@servicetitan/react-ioc": "23.1.0", | ||
"@types/react": "~18.2.55", | ||
"react": "~18.2.0" | ||
}, | ||
"peerDependencies": { | ||
"@servicetitan/log-service": "23.0.0", | ||
"@servicetitan/react-ioc": "23.0.0", | ||
"react": "~17.0.2" | ||
"@servicetitan/log-service": "23.1.0", | ||
"@servicetitan/react-ioc": "23.1.0", | ||
"react": ">=17.0.2" | ||
}, | ||
@@ -36,3 +36,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "45876ed36415ad78d3ec4ef3783d6df1430504d3" | ||
"gitHead": "7267270e54cdb3a2926f61feb4939d057e82adb3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6717