File size: 782 Bytes
4e23b01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { UnitState } from '#/_base/di/cascadeEngine';
import type { DependencyEdgeKind } from '#/_base/di/dependencyGraph';
import { createDecorator } from '#/_base/di/instantiation';

export interface DebugGraphNode {
  readonly id: string;
  readonly token: string;
  readonly scopePath: string;
  readonly uid?: number;
  readonly state?: UnitState;
}

export interface DebugGraphEdge {
  readonly from: string;
  readonly to: string;
  readonly kind: DependencyEdgeKind;
}

export interface DebugGraph {
  readonly nodes: DebugGraphNode[];
  readonly edges: DebugGraphEdge[];
}

export interface IDebugGraphService {
  readonly _serviceBrand: undefined;

  graph(): DebugGraph;
}

export const IDebugGraphService = createDecorator<IDebugGraphService>('debugGraphService');