Skip to content

Commit

Permalink
fix: Add type to recordJsErrorEvent parameter (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
piwysocki authored Jan 11, 2023
1 parent 691bfa4 commit 2ee6ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/event-plugins/JsErrorPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class JsErrorPlugin extends InternalPlugin {
}
};

private recordJsErrorEvent(error: any) {
private recordJsErrorEvent(error: ErrorEvent) {
this.context?.record(
JS_ERROR_EVENT_TYPE,
errorEventToJsErrorEvent(error, this.config.stackTraceLength)
Expand Down

0 comments on commit 2ee6ffa

Please sign in to comment.