File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/react-form-renderer/src/files Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { DataType } from "./data-types";
44import { AnyObject } from "./common" ;
55import { FieldMetaState , FieldInputProps } from "react-final-form" ;
66import { FormOptions } from "./renderer-context" ;
7+ import { Meta } from "./use-field-api" ;
78
89export type FieldAction = [ string , ...any [ ] ] ;
910
@@ -12,7 +13,7 @@ export interface FieldActions {
1213}
1314
1415export interface FieldApi < FieldValue , T extends HTMLElement = HTMLElement > {
15- meta : FieldMetaState < FieldValue > ;
16+ meta : Meta < FieldValue > ;
1617 input : FieldInputProps < FieldValue , T > ;
1718}
1819
Original file line number Diff line number Diff line change @@ -17,11 +17,15 @@ export interface UseFieldApiComponentConfig extends UseFieldConfig<any> {
1717 name : string ;
1818}
1919
20+ export interface Meta < FieldValue > extends FieldMetaState < FieldValue > {
21+ warning ?: any ;
22+ }
23+
2024export interface UseFieldApiProps <
2125 FieldValue ,
2226T extends HTMLElement = HTMLElement > extends AnyObject {
2327 input : FieldInputProps < FieldValue , T > ;
24- meta : FieldMetaState < FieldValue > ;
28+ meta : Meta < FieldValue > ;
2529}
2630
2731export default function < T = any > ( options : UseFieldApiConfig ) : UseFieldApiProps < T > ;
You can’t perform that action at this time.
0 commit comments