Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 5bb570c

Browse files
committed
update docs after build type change
1 parent fa3468f commit 5bb570c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/api/use-form-handler/build.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@ Notice how the template looks much cleaner with this approach, and this helps us
7676

7777
```ts
7878
export type Build<T extends Record<string, any> = Record<string, any>> = <
79-
TBuild extends Partial<Record<keyof T, RegisterOptions>>,
79+
TBuild extends Partial<T>,
8080
>(
81-
configuration: TBuild | Ref<TBuild> | ComputedRef<TBuild>
82-
) => ComputedRef<Record<keyof TBuild, Readonly<RegisterReturn<TBuild>>>>
83-
81+
configuration: ComputableUnion<ConfigType<TBuild>>
82+
) => ComputedRef<
83+
Record<
84+
keyof TBuild,
85+
Readonly<RegisterReturn<Partial<Record<keyof TBuild, RegisterOptions>>>>
86+
>
87+
>
8488
```

0 commit comments

Comments
 (0)