Closed
Description
I'm currently using typescript-fsa version 2.5. I'm augmenting ActionCreator interface like this:
declare module "typescript-fsa" {
export interface ActionCreator<P> {
type: string;
payloadType: P;
match: (action: Fsa.AnyAction) => action is Action<P>;
(payload: P, meta?: Meta): Action<P>;
}
}
The reason I'm doing it is that I extended it with payloadType. In 3.0 I'm not able to do that since types in typescript cannot be augmented. Is there any reason why you decided to use type?
Metadata
Metadata
Assignees
Labels
No labels