This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Transform to Typescript #274
Labels
help wanted
Extra attention is needed
Comments
I have an issue with @honeybadger-io/react and typescript in one of projects. An error while passing a Temporary workaround I've implemented: import ErrorBoundary from '@honeybadger-io/react';
import React from 'react';
import honeybadger from '../lib/honeybadger';
import type Honeybadger from '@honeybadger-io/js';
const App = (): JSX.Element => {
return (
// eslint-disable-next-line total-functions/no-unsafe-type-assertion
<ErrorBoundary honeybadger={honeybadger as Honeybadger}>
<>
<Component>
</>
</ErrorBoundary>
);
}; Full error text:
|
Hey @JustFly1984 , can you please try installing branch and let us know if you still experience the issue? npm command to install a specific branch:
Thanks! |
@JustFly1984 this should now be fixed in @honeybadger-io/[email protected] |
Yes, it is fixed!Thank you @joshuap |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let's transform our honeybadger-react code into typescript.
As a bonus, we won't have to manually maintain typescript definitions.
The text was updated successfully, but these errors were encountered: