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([
      {
      name: "foo",
      value: true,
      },
      {
      name: "bar",
      value: false,
      }
      ]);