projects/core/src/state/event/action-to-event-mapping.ts
Properties |
| action |
action:
|
Type : string | string[]
|
|
String type of action (or types) to be mapped to the event |
| event |
event:
|
Type : Type<T> | null
|
|
Event class type (constructor) |
| factory |
factory:
|
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;
}