Mateusz Burzyński
Mateusz Burzyński
What kind of formatting would you like to have by default? Are you using any other formatter?
There are various ways to achieve the result though. A simple formatter could just work similarly to `JSON.stringify` (we probably can't use it directly because we might need to handle...
> Moving from there, it seems that ideally the only parts that should be formatted are parts that have been introduced via the visual editor, and avoid formatting parts that...
> I'm using Typescript's [experimental support for ESM](https://www.typescriptlang.org/docs/handbook/esm-node.html), using the .mts extension. This isn't currently recognized by xstate-cli. Could the requirements for the extension be relaxed? I've prepared a fix...
> Hmm, yes that's tricky. I guess another option is to add a new command line option, so that the user can enable the .js extension explicitly - or maybe...
Where this expectation comes from? > Exit actions are typed to 'xstate.init' instead of '' Note that I'm working on introducing a special `xstate.stop` event that will end up being...
In the given example the declared `schema.events` doesn't match the `on.SOME_ACTION` :P but I get the gist. IMHO the typegen should declare this: ```diff eventsCausingActions: { exitAction: 'SOME_ACTION' | 'xstate.stop';...
I've transferred this issue to https://github.com/statelyai/xstate-tools - since the algorithm for computing those events is living here.
It's a limitation, however - I would expect this situation to not load a machine at all. It's better to fail fast than to pretend that things are OK when...
We'll be thinking if we should support those patterns or not. It definitely won't happen anytime soon. What kind of problems do you run into when you "put everything in...