Skip to content

Commit e9499f9

Browse files
authored
Fix watch overload types (#1159)
1 parent 76b9451 commit e9499f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/useform/watch.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ This method will watch specified inputs and return their values. It is useful to
1212

1313
This function mainly serves **two purposes**:
1414

15-
- <TypeText>`watch(name: string, defaultValue?): unknown`</TypeText>
16-
- <TypeText>`watch(names: string[], defaultValue?): {[key:string]: unknown}`</TypeText>
15+
- <TypeText>`watch(name: string, defaultValue?: unknown): unknown`</TypeText>
16+
- <TypeText>`watch(names: string[], defaultValue?: {[key:string]: unknown}): unknown[]`</TypeText>
1717
- <TypeText>`watch(): {[key:string]: unknown}`</TypeText>
1818

1919
The explanation of each of these four overloads follows below.

0 commit comments

Comments
 (0)