Skip to content

Instantly share code, notes, and snippets.

@onceknown
Last active August 1, 2017 22:08
Show Gist options
  • Save onceknown/f1ba8684561f87849e622817e25de312 to your computer and use it in GitHub Desktop.
Save onceknown/f1ba8684561f87849e622817e25de312 to your computer and use it in GitHub Desktop.
{
programs: {
`${programId}`: {
roots: [`${commandId}`, ... ],
commands: {
`${commandId}`: {
id: `${commandId}`,
type: `${commandType}`,
transitions: {
in: [`${transitionId}`, ... ],
out: [`${transitionId}`, ... ]
},
data: {
// Type specific data
}
}
},
transitions: {
`${transitionId}`: {
id: `${transitionId}`,
commands: {
in: `${commandId}`,
out: `${commandId}`
},
data: {
// Edge specific data
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment