1- import { Event , EventHint , Options , Severity } from '@sentry/types' ;
1+ import { Event , EventHint , Severity } from '@sentry/types' ;
22import {
33 addExceptionMechanism ,
44 addExceptionTypeValue ,
@@ -20,7 +20,7 @@ import { eventFromError, eventFromPlainObject, parseStackFrames } from './parser
2020export function eventFromException (
2121 exception : unknown ,
2222 hint ?: EventHint ,
23- attachStacktrace ?: Options [ 'attachStacktrace' ] ,
23+ attachStacktrace ?: boolean ,
2424) : PromiseLike < Event > {
2525 const syntheticException = ( hint && hint . syntheticException ) || undefined ;
2626 const event = eventFromUnknownInput ( exception , syntheticException , attachStacktrace ) ;
@@ -40,7 +40,7 @@ export function eventFromMessage(
4040 message : string ,
4141 level : Severity = Severity . Info ,
4242 hint ?: EventHint ,
43- attachStacktrace ?: Options [ 'attachStacktrace' ] ,
43+ attachStacktrace ?: boolean ,
4444) : PromiseLike < Event > {
4545 const syntheticException = ( hint && hint . syntheticException ) || undefined ;
4646 const event = eventFromString ( message , syntheticException , attachStacktrace ) ;
@@ -57,7 +57,7 @@ export function eventFromMessage(
5757export function eventFromUnknownInput (
5858 exception : unknown ,
5959 syntheticException ?: Error ,
60- attachStacktrace ?: Options [ 'attachStacktrace' ] ,
60+ attachStacktrace ?: boolean ,
6161 isUnhandledRejection ?: boolean ,
6262) : Event {
6363 let event : Event ;
@@ -129,11 +129,7 @@ export function eventFromUnknownInput(
129129/**
130130 * @hidden
131131 */
132- export function eventFromString (
133- input : string ,
134- syntheticException ?: Error ,
135- attachStacktrace ?: Options [ 'attachStacktrace' ] ,
136- ) : Event {
132+ export function eventFromString ( input : string , syntheticException ?: Error , attachStacktrace ?: boolean ) : Event {
137133 const event : Event = {
138134 message : input ,
139135 } ;
0 commit comments