-
Notifications
You must be signed in to change notification settings - Fork 257
Convert @bugsnag/core/lib/iserror to TypeScript #2422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration/typescript
Are you sure you want to change the base?
Conversation
@@ -1 +0,0 @@ | |||
module.exports = require('iserror') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that we've replicated this code in TS, we can remove the dependency on this library from packages/core/package.json
@@ -1,5 +1,4 @@ | |||
import { Config, Plugin } from '@bugsnag/core' | |||
import isError from '@bugsnag/core/lib/iserror' | |||
import { isError, Config, Plugin } from '@bugsnag/core' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { isError, Config, Plugin } from '@bugsnag/core' | |
import { isError } from '@bugsnag/core' | |
import type { Config, Plugin } from '@bugsnag/core' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
import { isError } from '@bugsnag/core' | ||
import type { Config, Plugin } from '@bugsnag/core' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏻 good separation of types and functionality here
Goal
Convert @bugsnag/core/lib/iserror to TypeScript
Testing
Covered by existing end to end and unit tests