Browse Source

ref: convert traceError.js to typescript (#55083)

/)   /)
( ᵔ ᵕ ᵔ )
/ づ  づ ~ ♡
Michelle Zhang 1 year ago
parent
commit
bb559c8e15
1 changed files with 4 additions and 1 deletions
  1. 4 1
      fixtures/js-stubs/traceError.tsx

+ 4 - 1
fixtures/js-stubs/traceError.js → fixtures/js-stubs/traceError.tsx

@@ -1,4 +1,6 @@
-export function TraceError(params = {}) {
+import {TraceError as TraceErrorType} from 'sentry/utils/performance/quickTrace/types';
+
+export function TraceError(params: Partial<TraceErrorType> = {}): TraceErrorType {
   return {
     event_id: '08384ee83c9145e79b5f6fbed5c37a51',
     issue_id: 62,
@@ -7,6 +9,7 @@ export function TraceError(params = {}) {
     project_slug: 'santry',
     title: 'Error: Something went wrong',
     level: 'error',
+    issue: '',
     ...params,
   };
 }