Commit 20a480c
erikras-dinesh-agent
Fix #1054: Add missing AnyObject type export
Re-export AnyObject type for backward compatibility with v6.x.
In v6.x (TypeScript definitions), AnyObject was exported as:
interface AnyObject { [key: string]: any; }
In v7.0.0, this type was removed, breaking code that imported it.
Added: export type AnyObject = Record<string, any>;
Note: FieldMetaState was already re-exported in PR #1072.
The other breaking changes mentioned in #1054 (FormState.values/dirty/etc
can be undefined, UseFieldConfig no longer generic) are intentional design
decisions in the Flow → TypeScript migration and should be documented in
release notes rather than changed.1 parent b5733ca commit 20a480c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments