Magek Framework
    Preparing search index...

    Function Reduces

    • Decorator to register an entity class method as a reducer function for a specific event.

      Type Parameters

      Parameters

      • eventClass: Class<TEvent>

        The event that this method will react to

      Returns <TEntity>(
          entityClassOrMethod: Function | Class<TEntity>,
          methodNameOrContext: string | Stage3MethodContext,
          methodDescriptor?: ReducerMethod<TEvent, TEntity>,
      ) => void