Skip to content

Commit

Permalink
Add third param to hoc type, to allow onAfterUpdate (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielart authored Dec 5, 2021
1 parent 7f7f87e commit 8ef91e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ declare module "teaful" {

type HocFunc<S, R extends React.ComponentClass = React.ComponentClass> = (
component: R,
initial?: S
initial?: S,
onAfterUpdate?: afterCallbackType<S>
) => R;

type afterCallbackType<S extends initialStoreType> = (param: {
Expand Down

0 comments on commit 8ef91e3

Please sign in to comment.