Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the definition of the To type in the docs #8989

Merged
merged 2 commits into from Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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