@@ -131,7 +131,7 @@ interface CreateFormRuneProps<
131131/**
132132 * @private
133133 */
134- export type AppFieldExtendedReactFormApi <
134+ type AppFieldExtendedSvelteFormApi <
135135 TFormData ,
136136 TOnMount extends undefined | FormValidateOrFn < TFormData > ,
137137 TOnChange extends undefined | FormValidateOrFn < TFormData > ,
@@ -179,61 +179,6 @@ export type AppFieldExtendedReactFormApi<
179179 AppForm : Component < { children : Snippet } >
180180 }
181181
182- export interface WithFormProps <
183- TFormData ,
184- TOnMount extends undefined | FormValidateOrFn < TFormData > ,
185- TOnChange extends undefined | FormValidateOrFn < TFormData > ,
186- TOnChangeAsync extends undefined | FormAsyncValidateOrFn < TFormData > ,
187- TOnBlur extends undefined | FormValidateOrFn < TFormData > ,
188- TOnBlurAsync extends undefined | FormAsyncValidateOrFn < TFormData > ,
189- TOnSubmit extends undefined | FormValidateOrFn < TFormData > ,
190- TOnSubmitAsync extends undefined | FormAsyncValidateOrFn < TFormData > ,
191- TOnDynamic extends undefined | FormValidateOrFn < TFormData > ,
192- TOnDynamicAsync extends undefined | FormAsyncValidateOrFn < TFormData > ,
193- TOnServer extends undefined | FormAsyncValidateOrFn < TFormData > ,
194- TSubmitMeta ,
195- TFieldComponents extends Record < string , Component < any , any > > ,
196- TFormComponents extends Record < string , Component < any , any > > ,
197- TRenderProps extends object = Record < string , never > ,
198- > extends FormOptions <
199- TFormData ,
200- TOnMount ,
201- TOnChange ,
202- TOnChangeAsync ,
203- TOnBlur ,
204- TOnBlurAsync ,
205- TOnSubmit ,
206- TOnSubmitAsync ,
207- TOnDynamic ,
208- TOnDynamicAsync ,
209- TOnServer ,
210- TSubmitMeta
211- > {
212- // Optional, but adds props to the `render` function outside of `form`
213- props ?: TRenderProps
214- render : (
215- props : NoInfer < TRenderProps > & {
216- form : AppFieldExtendedReactFormApi <
217- TFormData ,
218- TOnMount ,
219- TOnChange ,
220- TOnChangeAsync ,
221- TOnBlur ,
222- TOnBlurAsync ,
223- TOnSubmit ,
224- TOnSubmitAsync ,
225- TOnDynamic ,
226- TOnDynamicAsync ,
227- TOnServer ,
228- TSubmitMeta ,
229- TFieldComponents ,
230- TFormComponents
231- >
232- children : Snippet
233- } ,
234- ) => SvelteComponent
235- }
236-
237182export function createFormRune <
238183 const TComponents extends Record < string , Component < any , any > > ,
239184 const TFormComponents extends Record < string , Component < any , any > > ,
@@ -269,7 +214,7 @@ export function createFormRune<
269214 TOnServer ,
270215 TSubmitMeta
271216 > ,
272- ) : AppFieldExtendedReactFormApi <
217+ ) : AppFieldExtendedSvelteFormApi <
273218 TFormData ,
274219 TOnMount ,
275220 TOnChange ,
0 commit comments