Skip to content

Commit

Permalink
added NestedField type
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pflasterer committed Apr 26, 2024
1 parent 0b3341f commit 1242d57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/types/fields.ts
Expand Up @@ -50,4 +50,8 @@ export type Field = {
} & RegisterOptions;
};

export type FieldRefs = Partial<Record<InternalFieldName, Field>>;
export type NestedField = {
[key: string]: Field | NestedField;
};

export type FieldRefs = Partial<Record<InternalFieldName, Field | NestedField>>;

0 comments on commit 1242d57

Please sign in to comment.