switchyard
    Preparing search index...

    Function toClassSource

    • TypeScript source for a decorated Switchyard class equivalent to an xstate config. Guards become getter stubs and invoked actors async method stubs, each marked TODO; transition actions are listed in the event method's body. What the DSL cannot express yet (nested parallel states, multiple targets, compound onDone) is left as a comment rather than guessed.

      Parameters

      Returns string