summary refs log tree commit diff
path: root/src/util/interfaces/Event.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/interfaces/Event.ts')
-rw-r--r--src/util/interfaces/Event.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts

index 087f0a59..6152f70a 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts
@@ -153,7 +153,9 @@ export interface ReadyEventData { _trace?: string[]; // trace of the request, used for debugging } -export type TraceNode = { micros: number; calls: TraceNode[] } | { micros: number } | string; +export type TraceValue = { micros: number }; +export type TraceSubTree = { micros: number; calls: TraceNode[] }; +export type TraceNode = TraceSubTree | TraceValue | string; export type TraceRoot = [string, { micros: number; calls: TraceNode[] }];