File

projects/core/src/state/event/action-to-event-mapping.ts

Index

Properties

Properties

action
action: string | string[]
Type : string | string[]

String type of action (or types) to be mapped to the event

event
event: Type<T> | null
Type : Type<T> | null

Event class type (constructor)

factory
factory: function
Type : function
Optional

Function mapping the instance of the action to the event

import { Type } from '@angular/core';

export interface ActionToEventMapping<T> {
  /**
   * String type of action (or types) to be mapped to the event
   */
  action: string | string[];

  /**
   * Event class type (constructor)
   */
  event: Type<T> | null;

  /**
   * Function mapping the instance of the action to the event
   */
  factory?: (action: any) => T;
}

result-matching ""

    No results matching ""