Skip to content

Commit

Permalink
Fix the definition of the To type in the docs (#8989)
Browse files Browse the repository at this point in the history
* Fix the definition of the To type in the docs

* Add srmagura to contributors.yml
  • Loading branch information
srmagura committed Jun 30, 2022
1 parent 38359a9 commit 50241bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -59,6 +59,7 @@
- shihanng
- shivamsinghchahar
- tanayv
- srmagura
- thisiskartik
- ThornWu
- timdorr
Expand Down
2 changes: 1 addition & 1 deletion docs/components/link.md
Expand Up @@ -26,7 +26,7 @@ interface LinkProps
reloadDocument?: boolean;
}

type To = Partial<Location> | string;
type To = string | Partial<Path>;
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion docs/utils/resolve-path.md
Expand Up @@ -13,7 +13,7 @@ declare function resolvePath(
fromPathname?: string
): Path;

type To = Partial<Location> | string;
type To = string | Partial<Path>;

interface Path {
pathname: string;
Expand Down

0 comments on commit 50241bf

Please sign in to comment.