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";
4
4
import { AnyObject } from "./common" ;
5
5
import { FieldMetaState , FieldInputProps } from "react-final-form" ;
6
6
import { FormOptions } from "./renderer-context" ;
7
+ import { Meta } from "./use-field-api" ;
7
8
8
9
export type FieldAction = [ string , ...any [ ] ] ;
9
10
@@ -12,7 +13,7 @@ export interface FieldActions {
12
13
}
13
14
14
15
export interface FieldApi < FieldValue , T extends HTMLElement = HTMLElement > {
15
- meta : FieldMetaState < FieldValue > ;
16
+ meta : Meta < FieldValue > ;
16
17
input : FieldInputProps < FieldValue , T > ;
17
18
}
18
19
Original file line number Diff line number Diff line change @@ -17,11 +17,15 @@ export interface UseFieldApiComponentConfig extends UseFieldConfig<any> {
17
17
name : string ;
18
18
}
19
19
20
+ export interface Meta < FieldValue > extends FieldMetaState < FieldValue > {
21
+ warning ?: any ;
22
+ }
23
+
20
24
export interface UseFieldApiProps <
21
25
FieldValue ,
22
26
T extends HTMLElement = HTMLElement > extends AnyObject {
23
27
input : FieldInputProps < FieldValue , T > ;
24
- meta : FieldMetaState < FieldValue > ;
28
+ meta : Meta < FieldValue > ;
25
29
}
26
30
27
31
export default function < T = any > ( options : UseFieldApiConfig ) : UseFieldApiProps < T > ;
You can’t perform that action at this time.
0 commit comments