summaryrefslogtreecommitdiff
path: root/api.d.ts
blob: 72f1c47660d52e69a41bf5eeb40f7ae190b26c7b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export type OrgRoamGraphReponse = {
  nodes: OrgRoamNode[]
  links: OrgRoamLink[]
  tags: string[]
}

export type OrgRoamNode = {
  id: string
  file: string
  title: string
  level: number
  properties: {
    [key: string]: string | number
  }
}

export type OrgRoamLink = {
  source: string
  target: string
  type: string
}