Skip to content

Commit

Permalink
Use Pick instead of Omit
Browse files Browse the repository at this point in the history
  • Loading branch information
hanquliu committed Nov 23, 2021
1 parent 57407d3 commit 47a5c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- paulsmithkc
- noisypigeon
- elylucas
- liuhanqu
5 changes: 1 addition & 4 deletions packages/react-router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ function warningOnce(key: string, cond: boolean, message: string) {
* to avoid "tearing" that may occur in a suspense-enabled app if the action
* and/or location were to be read directly from the history instance.
*/
export type Navigator = Omit<
History,
"action" | "location" | "back" | "forward" | "listen" | "block"
>;
export type Navigator = Pick<History, "go" | "push" | "replace" | "createHref">;

interface NavigationContextObject {
basename: string;
Expand Down

0 comments on commit 47a5c32

Please sign in to comment.