addValidator(path, validator) {
      this.store.addValidator(path, validator);
    }
Adds a formatter function to a specified path.
@param {string} path - Path within the state to attach the formatter.
@param {Function} formatter - Formatting function to execute on path changes.