feat: exposes FieldWithPath type for reuse
This commit is contained in:
@@ -127,6 +127,7 @@ const useField = <T extends unknown>(options: Options): FieldType<T> => {
|
||||
formSubmitted: submitted,
|
||||
formProcessing: processing,
|
||||
setValue,
|
||||
initialValue,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -17,4 +17,5 @@ export type FieldType<T> = {
|
||||
formSubmitted: boolean
|
||||
formProcessing: boolean
|
||||
setValue: (val: unknown, modifyForm?: boolean) => void
|
||||
initialValue?: T
|
||||
}
|
||||
|
||||
1
types.d.ts
vendored
1
types.d.ts
vendored
@@ -29,6 +29,7 @@ export {
|
||||
export {
|
||||
Field,
|
||||
FieldHook,
|
||||
FieldWithPath,
|
||||
FieldAccess,
|
||||
RichTextCustomElement,
|
||||
RichTextCustomLeaf,
|
||||
|
||||
Reference in New Issue
Block a user