File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type { SpanMatcherFn } from './matchSpan'
6
6
import { createTraceRecording } from './recordingComputeUtils'
7
7
import type { SpanAndAnnotation } from './spanAnnotationTypes'
8
8
import type { FinalTransition , OnEnterStatePayload } from './Trace'
9
+ import type { TraceRecording } from './traceRecordingTypes'
9
10
import type {
10
11
DraftTraceContext ,
11
12
RelationSchemasBase ,
@@ -61,14 +62,11 @@ export function getComputedResults<RelationSchemasT>(
61
62
// eslint-disable-next-line @typescript-eslint/no-explicit-any
62
63
traceContext : TraceContext < any , RelationSchemasT , any > ,
63
64
finalTransition : FinalTransition < RelationSchemasT > ,
64
- ) {
65
- if ( ! traceContext || ! finalTransition ) return { }
65
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
66
+ ) : Partial < TraceRecording < any , RelationSchemasT > > {
66
67
try {
67
68
const recording = createTraceRecording ( traceContext , finalTransition )
68
- return {
69
- computedValues : recording . computedValues ,
70
- computedSpans : recording . computedSpans ,
71
- }
69
+ return recording
72
70
} catch {
73
71
return { }
74
72
}
You can’t perform that action at this time.
0 commit comments