I'm not really sure but as for declaration:
export class FeedZebra {
public static readonly type = '[Animals] Feed zebra';
constructor(public payload: string) {}
}
can it be used as:
@Action(Add)
public add({ getState, setState }: StateContext<AnimalsStateModel>, (...)
?
or should it be:
@Action(FeedZebra)
public add({ getState, setState }: StateContext<AnimalsStateModel>, (...)
?
or even:
@Action(FeedZebra)
public feedZebra({ getState, setState }: StateContext<AnimalsStateModel>, (...)
?
I'm not really sure but as for declaration:
can it be used as:
?
or should it be:
?
or even:
?