What’s the best way to get a union type that represents all the possible machine states as object path strings? I expose a subset of these as a status value via React context. I can’t find a way to dynamically get this type, but having a separate list of possible values means you need to update two places when you change state names in the machine definition. @jolly flicker?
export const statusValues = [
'idle',
'edit.blank',
'edit.ready',
'edit.streaming.connecting',
'edit.streaming.connected',
'edit.done',
] as const
export type Status = (typeof statusValues)[number]