JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Function from


    • Create a state machine from an implementation string. This is one of the two main paths for working with JSSM, alongside sm.

      Use this method when you want to conveniently pull a state machine from a string dynamically. Use operator sm when you just want to work with a template expression.

      import * as jssm from 'jssm';

      const lswitch = jssm.from('on <=> off;');

      Type Parameters

      • mDT

        The type of the machine data member; usually omitted

      Parameters

      Returns Machine<mDT>