rewright
    Preparing search index...

    Function createStore

    • A function for creating a state store. State stores are appended to Rewright's global state store. These objects are helpful for defining multiple stateful objects in Rewright that are accessible across multiple classes.

      Parameters

      • definition: State[]

        the stateful objects to append to the global state store.

      Returns void

      createStore([
      new State("foo", true),
      new State("bar", false),
      ]);