@tanstack/form-core 0.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +44 -44
- package/build/types/index.d.ts +3 -167
- package/package.json +1 -1
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","uid":"a2ab-1"},{"name":"packages/form-core/src","children":[{"uid":"a2ab-3","name":"utils.ts"},{"uid":"a2ab-5","name":"FormApi.ts"},{"uid":"a2ab-9","name":"FieldApi.ts"},{"uid":"a2ab-11","name":"index.ts"}]},{"uid":"a2ab-7","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"a2ab-1":{"renderedLength":1288,"gzipLength":497,"brotliLength":0,"mainUid":"a2ab-0"},"a2ab-3":{"renderedLength":1944,"gzipLength":684,"brotliLength":0,"mainUid":"a2ab-2"},"a2ab-5":{"renderedLength":10266,"gzipLength":2308,"brotliLength":0,"mainUid":"a2ab-4"},"a2ab-7":{"renderedLength":353,"gzipLength":227,"brotliLength":0,"mainUid":"a2ab-6"},"a2ab-9":{"renderedLength":7553,"gzipLength":1868,"brotliLength":0,"mainUid":"a2ab-8"},"a2ab-11":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"a2ab-10"}},"nodeMetas":{"a2ab-0":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"a2ab-1"},"imported":[],"importedBy":[{"uid":"a2ab-4"},{"uid":"a2ab-8"}]},"a2ab-2":{"id":"/packages/form-core/src/utils.ts","moduleParts":{"index.production.js":"a2ab-3"},"imported":[],"importedBy":[{"uid":"a2ab-10"},{"uid":"a2ab-4"}]},"a2ab-4":{"id":"/packages/form-core/src/FormApi.ts","moduleParts":{"index.production.js":"a2ab-5"},"imported":[{"uid":"a2ab-0"},{"uid":"a2ab-2"}],"importedBy":[{"uid":"a2ab-10"}]},"a2ab-6":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"a2ab-7"},"imported":[],"importedBy":[{"uid":"a2ab-8"}]},"a2ab-8":{"id":"/packages/form-core/src/FieldApi.ts","moduleParts":{"index.production.js":"a2ab-9"},"imported":[{"uid":"a2ab-6"},{"uid":"a2ab-0"}],"importedBy":[{"uid":"a2ab-10"}]},"a2ab-10":{"id":"/packages/form-core/src/index.ts","moduleParts":{"index.production.js":"a2ab-11"},"imported":[{"uid":"a2ab-4"},{"uid":"a2ab-8"},{"uid":"a2ab-2"}],"importedBy":[],"isEntry":true}},"env":{"rollup":"2.78.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -8,31 +8,31 @@
|
|
|
8
8
|
"children": [
|
|
9
9
|
{
|
|
10
10
|
"name": "node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
|
|
11
|
-
"uid": "
|
|
11
|
+
"uid": "a2ab-13"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "packages/form-core/src",
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
|
-
"uid": "
|
|
17
|
+
"uid": "a2ab-15",
|
|
18
18
|
"name": "utils.ts"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
"uid": "
|
|
21
|
+
"uid": "a2ab-17",
|
|
22
22
|
"name": "FormApi.ts"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"uid": "
|
|
25
|
+
"uid": "a2ab-21",
|
|
26
26
|
"name": "FieldApi.ts"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"uid": "
|
|
29
|
+
"uid": "a2ab-23",
|
|
30
30
|
"name": "index.ts"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"uid": "
|
|
35
|
+
"uid": "a2ab-19",
|
|
36
36
|
"name": "\u0000rollupPluginBabelHelpers.js"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
@@ -41,138 +41,138 @@
|
|
|
41
41
|
"isRoot": true
|
|
42
42
|
},
|
|
43
43
|
"nodeParts": {
|
|
44
|
-
"
|
|
44
|
+
"a2ab-13": {
|
|
45
45
|
"renderedLength": 1288,
|
|
46
46
|
"gzipLength": 497,
|
|
47
47
|
"brotliLength": 0,
|
|
48
|
-
"mainUid": "
|
|
48
|
+
"mainUid": "a2ab-12"
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"a2ab-15": {
|
|
51
51
|
"renderedLength": 1944,
|
|
52
52
|
"gzipLength": 684,
|
|
53
53
|
"brotliLength": 0,
|
|
54
|
-
"mainUid": "
|
|
54
|
+
"mainUid": "a2ab-14"
|
|
55
55
|
},
|
|
56
|
-
"
|
|
56
|
+
"a2ab-17": {
|
|
57
57
|
"renderedLength": 10266,
|
|
58
58
|
"gzipLength": 2308,
|
|
59
59
|
"brotliLength": 0,
|
|
60
|
-
"mainUid": "
|
|
60
|
+
"mainUid": "a2ab-16"
|
|
61
61
|
},
|
|
62
|
-
"
|
|
62
|
+
"a2ab-19": {
|
|
63
63
|
"renderedLength": 353,
|
|
64
64
|
"gzipLength": 227,
|
|
65
65
|
"brotliLength": 0,
|
|
66
|
-
"mainUid": "
|
|
66
|
+
"mainUid": "a2ab-18"
|
|
67
67
|
},
|
|
68
|
-
"
|
|
68
|
+
"a2ab-21": {
|
|
69
69
|
"renderedLength": 7553,
|
|
70
70
|
"gzipLength": 1868,
|
|
71
71
|
"brotliLength": 0,
|
|
72
|
-
"mainUid": "
|
|
72
|
+
"mainUid": "a2ab-20"
|
|
73
73
|
},
|
|
74
|
-
"
|
|
74
|
+
"a2ab-23": {
|
|
75
75
|
"renderedLength": 0,
|
|
76
76
|
"gzipLength": 0,
|
|
77
77
|
"brotliLength": 0,
|
|
78
|
-
"mainUid": "
|
|
78
|
+
"mainUid": "a2ab-22"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"nodeMetas": {
|
|
82
|
-
"
|
|
82
|
+
"a2ab-12": {
|
|
83
83
|
"id": "/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
|
|
84
84
|
"moduleParts": {
|
|
85
|
-
"index.production.js": "
|
|
85
|
+
"index.production.js": "a2ab-13"
|
|
86
86
|
},
|
|
87
87
|
"imported": [],
|
|
88
88
|
"importedBy": [
|
|
89
89
|
{
|
|
90
|
-
"uid": "
|
|
90
|
+
"uid": "a2ab-16"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
"uid": "
|
|
93
|
+
"uid": "a2ab-20"
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
-
"
|
|
97
|
+
"a2ab-14": {
|
|
98
98
|
"id": "/packages/form-core/src/utils.ts",
|
|
99
99
|
"moduleParts": {
|
|
100
|
-
"index.production.js": "
|
|
100
|
+
"index.production.js": "a2ab-15"
|
|
101
101
|
},
|
|
102
102
|
"imported": [],
|
|
103
103
|
"importedBy": [
|
|
104
104
|
{
|
|
105
|
-
"uid": "
|
|
105
|
+
"uid": "a2ab-22"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
"uid": "
|
|
108
|
+
"uid": "a2ab-16"
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
-
"
|
|
112
|
+
"a2ab-16": {
|
|
113
113
|
"id": "/packages/form-core/src/FormApi.ts",
|
|
114
114
|
"moduleParts": {
|
|
115
|
-
"index.production.js": "
|
|
115
|
+
"index.production.js": "a2ab-17"
|
|
116
116
|
},
|
|
117
117
|
"imported": [
|
|
118
118
|
{
|
|
119
|
-
"uid": "
|
|
119
|
+
"uid": "a2ab-12"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"uid": "
|
|
122
|
+
"uid": "a2ab-14"
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
125
|
"importedBy": [
|
|
126
126
|
{
|
|
127
|
-
"uid": "
|
|
127
|
+
"uid": "a2ab-22"
|
|
128
128
|
}
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
"
|
|
131
|
+
"a2ab-18": {
|
|
132
132
|
"id": "\u0000rollupPluginBabelHelpers.js",
|
|
133
133
|
"moduleParts": {
|
|
134
|
-
"index.production.js": "
|
|
134
|
+
"index.production.js": "a2ab-19"
|
|
135
135
|
},
|
|
136
136
|
"imported": [],
|
|
137
137
|
"importedBy": [
|
|
138
138
|
{
|
|
139
|
-
"uid": "
|
|
139
|
+
"uid": "a2ab-20"
|
|
140
140
|
}
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
|
-
"
|
|
143
|
+
"a2ab-20": {
|
|
144
144
|
"id": "/packages/form-core/src/FieldApi.ts",
|
|
145
145
|
"moduleParts": {
|
|
146
|
-
"index.production.js": "
|
|
146
|
+
"index.production.js": "a2ab-21"
|
|
147
147
|
},
|
|
148
148
|
"imported": [
|
|
149
149
|
{
|
|
150
|
-
"uid": "
|
|
150
|
+
"uid": "a2ab-18"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
"uid": "
|
|
153
|
+
"uid": "a2ab-12"
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
156
|
"importedBy": [
|
|
157
157
|
{
|
|
158
|
-
"uid": "
|
|
158
|
+
"uid": "a2ab-22"
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
-
"
|
|
162
|
+
"a2ab-22": {
|
|
163
163
|
"id": "/packages/form-core/src/index.ts",
|
|
164
164
|
"moduleParts": {
|
|
165
|
-
"index.production.js": "
|
|
165
|
+
"index.production.js": "a2ab-23"
|
|
166
166
|
},
|
|
167
167
|
"imported": [
|
|
168
168
|
{
|
|
169
|
-
"uid": "
|
|
169
|
+
"uid": "a2ab-16"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
"uid": "
|
|
172
|
+
"uid": "a2ab-20"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
"uid": "
|
|
175
|
+
"uid": "a2ab-14"
|
|
176
176
|
}
|
|
177
177
|
],
|
|
178
178
|
"importedBy": [],
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,167 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
import { FormEvent } from 'react';
|
|
12
|
-
import { Store } from '@tanstack/store';
|
|
13
|
-
|
|
14
|
-
declare type UpdaterFn<TInput, TOutput = TInput> = (input: TInput) => TOutput;
|
|
15
|
-
declare type Updater<TInput, TOutput = TInput> = TOutput | UpdaterFn<TInput, TOutput>;
|
|
16
|
-
declare function functionalUpdate<TInput, TOutput = TInput>(updater: Updater<TInput, TOutput>, input: TInput): TOutput;
|
|
17
|
-
declare function getBy(obj: any, path: any): any;
|
|
18
|
-
declare function setBy(obj: any, _path: any, updater: Updater<any>): any;
|
|
19
|
-
declare type RequiredByKey<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
20
|
-
declare type ComputeRange<N extends number, Result extends Array<unknown> = []> = Result['length'] extends N ? Result : ComputeRange<N, [...Result, Result['length']]>;
|
|
21
|
-
declare type Index40 = ComputeRange<40>[number];
|
|
22
|
-
declare type IsTuple<T> = T extends readonly any[] & {
|
|
23
|
-
length: infer Length;
|
|
24
|
-
} ? Length extends Index40 ? T : never : never;
|
|
25
|
-
declare type AllowedIndexes<Tuple extends ReadonlyArray<any>, Keys extends number = never> = Tuple extends readonly [] ? Keys : Tuple extends readonly [infer _, ...infer Tail] ? AllowedIndexes<Tail, Keys | Tail['length']> : Keys;
|
|
26
|
-
declare type DeepKeys<T> = unknown extends T ? keyof T : object extends T ? string : T extends readonly any[] & IsTuple<T> ? AllowedIndexes<T> | DeepKeysPrefix<T, AllowedIndexes<T>> : T extends any[] ? never & 'Dynamic length array indexing is not supported' : T extends Date ? never : T extends object ? (keyof T & string) | DeepKeysPrefix<T, keyof T> : never;
|
|
27
|
-
declare type DeepKeysPrefix<T, TPrefix> = TPrefix extends keyof T & (number | string) ? `${TPrefix}.${DeepKeys<T[TPrefix]> & string}` : never;
|
|
28
|
-
declare type DeepValue<T, TProp> = T extends Record<string | number, any> ? TProp extends `${infer TBranch}.${infer TDeepProp}` ? DeepValue<T[TBranch], TDeepProp> : T[TProp & string] : never;
|
|
29
|
-
|
|
30
|
-
declare type ValidateOn = 'change' | 'blur' | 'submit';
|
|
31
|
-
declare type FieldOptions<TData, TFormData> = {
|
|
32
|
-
name: unknown extends TFormData ? string : DeepKeys<TFormData>;
|
|
33
|
-
defaultValue?: TData;
|
|
34
|
-
form?: FormApi<TFormData>;
|
|
35
|
-
validate?: (value: TData, fieldApi: FieldApi<TData, TFormData>) => ValidationError;
|
|
36
|
-
validateAsync?: (value: TData, fieldApi: FieldApi<TData, TFormData>) => ValidationError | Promise<ValidationError>;
|
|
37
|
-
validatePristine?: boolean;
|
|
38
|
-
validateOn?: ValidateOn;
|
|
39
|
-
validateAsyncOn?: ValidateOn;
|
|
40
|
-
validateAsyncDebounceMs?: number;
|
|
41
|
-
filterValue?: (value: TData) => TData;
|
|
42
|
-
defaultMeta?: Partial<FieldMeta>;
|
|
43
|
-
change?: boolean;
|
|
44
|
-
blur?: boolean;
|
|
45
|
-
submit?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare type FieldMeta = {
|
|
48
|
-
isTouched: boolean;
|
|
49
|
-
touchedError?: ValidationError;
|
|
50
|
-
error?: ValidationError;
|
|
51
|
-
isValidating: boolean;
|
|
52
|
-
};
|
|
53
|
-
declare type ChangeProps<TData> = {
|
|
54
|
-
onChange?: (updater: Updater<TData>) => void;
|
|
55
|
-
onBlur?: (event: any) => void;
|
|
56
|
-
};
|
|
57
|
-
declare type InputProps = {
|
|
58
|
-
onChange?: (event: any) => void;
|
|
59
|
-
onBlur?: (event: any) => void;
|
|
60
|
-
};
|
|
61
|
-
declare type FieldApiOptions<TData, TFormData> = RequiredByKey<FieldOptions<TData, TFormData>, 'form'>;
|
|
62
|
-
declare type FieldState<TData> = {
|
|
63
|
-
value: TData;
|
|
64
|
-
meta: FieldMeta;
|
|
65
|
-
};
|
|
66
|
-
declare class FieldApi<TData, TFormData> {
|
|
67
|
-
#private;
|
|
68
|
-
uid: number;
|
|
69
|
-
form: FormApi<TFormData>;
|
|
70
|
-
name: DeepKeys<TFormData>;
|
|
71
|
-
store: Store<FieldState<TData>>;
|
|
72
|
-
state: FieldState<TData>;
|
|
73
|
-
options: RequiredByKey<FieldOptions<TData, TFormData>, 'validateOn' | 'validateAsyncOn'>;
|
|
74
|
-
constructor(opts: FieldApiOptions<TData, TFormData>);
|
|
75
|
-
mount: () => () => void;
|
|
76
|
-
update: (opts: FieldApiOptions<TData, TFormData>) => void;
|
|
77
|
-
getValue: () => TData;
|
|
78
|
-
setValue: (updater: Updater<TData>, options?: {
|
|
79
|
-
touch?: boolean;
|
|
80
|
-
notify?: boolean;
|
|
81
|
-
}) => void;
|
|
82
|
-
getMeta: () => FieldMeta;
|
|
83
|
-
setMeta: (updater: Updater<FieldMeta>) => void;
|
|
84
|
-
getInfo: () => Record<DeepKeys<TFormData>, FieldInfo<TFormData>>[DeepKeys<TFormData>];
|
|
85
|
-
pushValue: (value: TData) => void;
|
|
86
|
-
insertValue: (index: number, value: TData) => void;
|
|
87
|
-
removeValue: (index: number) => void;
|
|
88
|
-
swapValues: (aIndex: number, bIndex: number) => void;
|
|
89
|
-
getSubField: <TName extends DeepKeys<TData>>(name: TName) => FieldApi<DeepValue<TData, TName>, TFormData>;
|
|
90
|
-
validate: () => Promise<ValidationError>;
|
|
91
|
-
validateAsync: () => Promise<ValidationError>;
|
|
92
|
-
getChangeProps: <T extends ChangeProps<any>>(props?: T) => ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>>;
|
|
93
|
-
getInputProps: <T extends InputProps>(props?: T) => InputProps & Omit<T, keyof InputProps>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare type FormOptions<TData> = {
|
|
97
|
-
defaultValues?: TData;
|
|
98
|
-
defaultState?: Partial<FormState<TData>>;
|
|
99
|
-
onSubmit?: (values: TData, formApi: FormApi<TData>) => Promise<any>;
|
|
100
|
-
onInvalidSubmit?: (values: TData, formApi: FormApi<TData>) => void;
|
|
101
|
-
validate?: (values: TData, formApi: FormApi<TData>) => Promise<any>;
|
|
102
|
-
debugForm?: boolean;
|
|
103
|
-
validatePristine?: boolean;
|
|
104
|
-
};
|
|
105
|
-
declare type FieldInfo<TFormData> = {
|
|
106
|
-
instances: Record<string, FieldApi<any, TFormData>>;
|
|
107
|
-
} & ValidationMeta;
|
|
108
|
-
declare type ValidationMeta = {
|
|
109
|
-
validationCount?: number;
|
|
110
|
-
validationPromise?: Promise<ValidationError>;
|
|
111
|
-
validationResolve?: (error: ValidationError) => void;
|
|
112
|
-
validationReject?: (error: unknown) => void;
|
|
113
|
-
};
|
|
114
|
-
declare type ValidationError = undefined | false | null | string;
|
|
115
|
-
declare type FormState<TData> = {
|
|
116
|
-
values: TData;
|
|
117
|
-
isFormValidating: boolean;
|
|
118
|
-
formValidationCount: number;
|
|
119
|
-
isFormValid: boolean;
|
|
120
|
-
formError?: ValidationError;
|
|
121
|
-
fieldMeta: Record<DeepKeys<TData>, FieldMeta>;
|
|
122
|
-
isFieldsValidating: boolean;
|
|
123
|
-
isFieldsValid: boolean;
|
|
124
|
-
isSubmitting: boolean;
|
|
125
|
-
isTouched: boolean;
|
|
126
|
-
isSubmitted: boolean;
|
|
127
|
-
isValidating: boolean;
|
|
128
|
-
isValid: boolean;
|
|
129
|
-
canSubmit: boolean;
|
|
130
|
-
submissionAttempts: number;
|
|
131
|
-
};
|
|
132
|
-
declare function getDefaultFormState<TData>(defaultState: Partial<FormState<TData>>): FormState<TData>;
|
|
133
|
-
declare class FormApi<TFormData> {
|
|
134
|
-
options: FormOptions<TFormData>;
|
|
135
|
-
store: Store<FormState<TFormData>>;
|
|
136
|
-
state: FormState<TFormData>;
|
|
137
|
-
fieldInfo: Record<DeepKeys<TFormData>, FieldInfo<TFormData>>;
|
|
138
|
-
fieldName?: string;
|
|
139
|
-
validationMeta: ValidationMeta;
|
|
140
|
-
constructor(opts?: FormOptions<TFormData>);
|
|
141
|
-
update: (options: FormOptions<TFormData>) => void;
|
|
142
|
-
reset: () => void;
|
|
143
|
-
validateAllFields: () => Promise<ValidationError[]>;
|
|
144
|
-
validateForm: () => Promise<ValidationError>;
|
|
145
|
-
handleSubmit: (e: FormEvent & {
|
|
146
|
-
__handled?: boolean;
|
|
147
|
-
}) => Promise<void>;
|
|
148
|
-
getFieldValue: <TField extends DeepKeys<TFormData>>(field: TField) => DeepValue<TFormData, TField>;
|
|
149
|
-
getFieldMeta: <TField extends DeepKeys<TFormData>>(field: TField) => FieldMeta;
|
|
150
|
-
getFieldInfo: <TField extends DeepKeys<TFormData>>(field: TField) => Record<DeepKeys<TFormData>, FieldInfo<TFormData>>[TField];
|
|
151
|
-
setFieldMeta: <TField extends DeepKeys<TFormData>>(field: TField, updater: Updater<FieldMeta>) => void;
|
|
152
|
-
setFieldValue: <TField extends DeepKeys<TFormData>>(field: TField, updater: Updater<DeepValue<TFormData, TField>, DeepValue<TFormData, TField>>, opts?: {
|
|
153
|
-
touch?: boolean;
|
|
154
|
-
}) => void;
|
|
155
|
-
pushFieldValue: <TField extends DeepKeys<TFormData>>(field: TField, value: DeepValue<TFormData, TField>, opts?: {
|
|
156
|
-
touch?: boolean;
|
|
157
|
-
}) => void;
|
|
158
|
-
insertFieldValue: <TField extends DeepKeys<TFormData>>(field: TField, index: number, value: DeepValue<TFormData, TField>, opts?: {
|
|
159
|
-
touch?: boolean;
|
|
160
|
-
}) => void;
|
|
161
|
-
spliceFieldValue: <TField extends DeepKeys<TFormData>>(field: TField, index: number, opts?: {
|
|
162
|
-
touch?: boolean;
|
|
163
|
-
}) => void;
|
|
164
|
-
swapFieldValues: <TField extends DeepKeys<TFormData>>(field: TField, index1: number, index2: number) => void;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export { ChangeProps, DeepKeys, DeepValue, FieldApi, FieldApiOptions, FieldInfo, FieldMeta, FieldOptions, FieldState, FormApi, FormOptions, FormState, InputProps, RequiredByKey, Updater, UpdaterFn, ValidationError, ValidationMeta, functionalUpdate, getBy, getDefaultFormState, setBy };
|
|
1
|
+
export * from './FormApi';
|
|
2
|
+
export * from './FieldApi';
|
|
3
|
+
export * from './utils';
|