(...args: any[])
| 134 | ): FieldTree<TModel>; |
| 135 | |
| 136 | export function compatForm<TModel>(...args: any[]): FieldTree<TModel> { |
| 137 | const [model, maybeSchema, maybeOptions] = normalizeFormArgs<TModel>(args); |
| 138 | |
| 139 | const options = {...maybeOptions, adapter: new CompatFieldAdapter()}; |
| 140 | const schema = maybeSchema || ((() => {}) as SchemaOrSchemaFn<TModel, PathKind>); |
| 141 | return form(model, schema, options); |
| 142 | } |
no test coverage detected