Skip to content

Commit 50241bf

Browse files
authored
Fix the definition of the To type in the docs (#8989)
* Fix the definition of the To type in the docs * Add srmagura to contributors.yml
1 parent 38359a9 commit 50241bf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
- shihanng
6060
- shivamsinghchahar
6161
- tanayv
62+
- srmagura
6263
- thisiskartik
6364
- ThornWu
6465
- timdorr

docs/components/link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface LinkProps
2626
reloadDocument?: boolean;
2727
}
2828

29-
type To = Partial<Location> | string;
29+
type To = string | Partial<Path>;
3030
```
3131

3232
</details>

docs/utils/resolve-path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare function resolvePath(
1313
fromPathname?: string
1414
): Path;
1515

16-
type To = Partial<Location> | string;
16+
type To = string | Partial<Path>;
1717

1818
interface Path {
1919
pathname: string;

0 commit comments

Comments
 (0)