Files
trackmyapp/app/home/graph.ts

25 lines
365 B
TypeScript

interface Node {
key: string
outs: Record<string, Connection>
}
interface Entry {
name: string
stages: Node["key"][]
}
interface Connection {
nodeKey: Node["key"]
weight: number
}
const DEFAULT_NODE = {
applicationSubmittedNode: {
key: "Application submitted",
outs: {},
},
} as const
export { DEFAULT_NODE }
export type { Node, Entry, Connection }