Skip to content

Commit ec972c5

Browse files
author
Jake Richards
authored
Fix type error in Field.d.ts (#81)
1 parent 050169c commit ec972c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Field.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,7 @@ class Field extends React.Component<FieldProps, FieldState> implements FieldEnti
164164

165165
// ========================= Field Entity Interfaces =========================
166166
// Trigger by store update. Check if need update the component
167-
public onStoreChange = (
168-
prevStore: Store,
169-
namePathList: InternalNamePath[] | null,
170-
info: NotifyInfo,
171-
) => {
167+
public onStoreChange: FieldEntity['onStoreChange'] = (prevStore, namePathList, info) => {
172168
const { shouldUpdate, dependencies = [], onReset } = this.props;
173169
const { getFieldsValue }: FormInstance = this.context;
174170
const values = getFieldsValue(true);

0 commit comments

Comments
 (0)