2
The xsm shortcut should help with Context and Event typing
complete
Erik Rasmussen
As I hit [tab] through the steps, I'd like to be taken to define an empty Context interface and a first event type.
I don't know how y'all do it, but my state machine modus operandi is to do:
interface Context {}
type Event = { type: 'First Event' }
export const myMachine = createMachine({
schema: {
context: {} as Context,
events: {} as Event
}
...
})
Having those types, even the empty ones, generated for me would be nice. 🙏
Anders Bech Mellson
complete
Anders Bech Mellson
under review
Not sure how this Canny thing works. But this is now in review awaiting approval and release...