code: function createStore(descriptor) {
      var store = new pastore_1.XStore(descriptor.initState);
      store.name = descriptor.name;
      if (descriptor.actions)
          store.actions = descriptor.actions;
      if (descriptor.middlewares)
          store.actionMiddlewares = descriptor.middlewares;
      return store;
  }
docs: 创建 pastore 的工厂函数