Skip to content

Commit 539add9

Browse files
committed
Add on change to form spy types
1 parent 9ab3e97 commit 539add9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/form-state-manager/src/types/form-spy.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ interface ChildrenFormSpyProps extends ManagerState {
77

88
type Children = (props: ChildrenFormSpyProps) => React.ReactElement;
99

10+
type OnChange = (managerState: ChildrenFormSpyProps) => void;
1011
export interface FormSpyProps {
1112
children: Children;
1213
subscription?: Subscription;
14+
onChange?: OnChange;
1315
}
1416

1517
export default FormSpyProps;

0 commit comments

Comments
 (0)