File tree Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -11,30 +11,22 @@ new: true
11
11
``` tsx
12
12
declare function Form(props : FormProps ): React .ReactElement ;
13
13
14
- export interface LinkProps
14
+ interface FormProps
15
15
extends React .FormHTMLAttributes <HTMLFormElement > {
16
16
method? : " get" | " post" | " put" | " patch" | " delete" ;
17
17
encType? :
18
18
| " application/x-www-form-urlencoded"
19
19
| " multipart/form-data"
20
20
| " text/plain" ;
21
21
action? : string ;
22
- relative? : " route" | " path" ;
23
- preventScrollReset? : boolean ;
24
22
onSubmit? : React .FormEventHandler <HTMLFormElement >;
23
+ preventScrollReset? : boolean ;
24
+ relative? : " route" | " path" ;
25
25
reloadDocument? : boolean ;
26
26
replace? : boolean ;
27
27
state? : any ;
28
28
unstable_viewTransition? : boolean ;
29
29
}
30
-
31
- type To = string | Partial <Path >;
32
-
33
- interface Path {
34
- pathname: string ;
35
- search: string ;
36
- hash: string ;
37
- }
38
30
```
39
31
40
32
</details >
Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ title: Link
12
12
``` tsx
13
13
declare function Link(props : LinkProps ): React .ReactElement ;
14
14
15
- export interface LinkProps
15
+ interface LinkProps
16
16
extends Omit <
17
17
React .AnchorHTMLAttributes <HTMLAnchorElement >,
18
18
" href"
19
19
> {
20
- replace? : boolean ;
21
- state? : any ;
22
20
to: To ;
23
- reloadDocument? : boolean ;
24
21
preventScrollReset? : boolean ;
25
22
relative? : " route" | " path" ;
23
+ reloadDocument? : boolean ;
24
+ replace? : boolean ;
25
+ state? : any ;
26
26
unstable_viewTransition? : boolean ;
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments