Commit 3abfb2d
feat(react): expose FallbackRender as top-level type (#5307)
This PR exposes the `FallbackRender` type at the root level of `@sentry/react` package. Currently, to use the type and so get type info on the passed error object., a project I work on does:
```ts
import { FallbackRender } from '@sentry/react/types/errorboundary.d';
// v6: import { FallbackRender } from '@sentry/react/dist/errorboundary';
export const ErrorOverlay: FallbackRender = (error) => { /* component code */ });
```
which feels wrong, as reaching into the package internals is clearly asking for unannounced breaking changes (as seen going from v6->v7).
Signed-off-by: Matthew Peveler <matt@popsql.com>
Co-authored-by: Abhijeet Prasad <devabhiprasad@gmail.com>1 parent 982696f commit 3abfb2d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments