UNPKG

@spartacus/core

Version:

Spartacus - the core framework

16 lines (15 loc) 391 B
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; }