Skip to content

Version 4.2.4

Compare
Choose a tag to compare
@bluebill1049 bluebill1049 released this 15 Apr 09:32
· 31 commits to master since this release

type update: allow actions payload to be optional

export type ActionsOutput<
  TCallback extends AnyCallback,
  TActions extends AnyActions<TCallback>
> = {
-  [K in keyof TActions]: (payload: Parameters<TActions[K]>[1]) => void;
+  [K in keyof TActions]: (payload?: Parameters<TActions[K]>[1]) => void;
};