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