Skip to content

Commit 20a480c

Browse files
author
erikras-dinesh-agent
committed
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

File tree

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import type {
1111

1212
type SupportedInputs = "input" | "select" | "textarea";
1313

14+
// Backward compatibility: Re-export AnyObject type
15+
export type AnyObject = Record<string, any>;
16+
1417
export interface ReactContext<FormValues = Record<string, any>> {
1518
reactFinalForm: FormApi<FormValues>;
1619
}

0 commit comments

Comments
 (0)