Skip to content

Commit d7df74a

Browse files
committed
[docs] Update form options
1 parent 1752153 commit d7df74a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/docs2/src/content/docs/form/options.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ export type UiOptionsRegistryOption = keyof UiOptionsRegistry extends never
1919
[UI_OPTIONS_REGISTRY_KEY]: UiOptionsRegistry;
2020
};
2121

22-
export interface ValueRef<T> {
23-
current: T;
24-
}
25-
2622
export interface FormOptions<T, V extends Validator>
2723
extends UiOptionsRegistryOption {
2824
validator: V;
@@ -49,7 +45,7 @@ export interface FormOptions<T, V extends Validator>
4945
*/
5046
idPseudoSeparator?: string;
5147
//
52-
value?: [() => T, (v: T) => void];
48+
value?: Lens<T>;
5349
initialValue?: InitialValue<T>;
5450
initialErrors?: InitialErrors<V>;
5551
/**

0 commit comments

Comments
 (0)