Artifact Content
Not logged in

Artifact 35d19ce1954336c123b22e99d7de10e001f1b4d9:


export type Relation = 'parent' | 'child' | 'peer' | 'local'

export function getRelationPriority (relation: Relation): number {
  return {
    parent: 0,
    peer: 1,
    child: 2,
    local: 3
  }[relation]
}