Skip to content

Commit

Permalink
fix(react): Add type for React Router's encodeLocation method (#6439)
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan authored Dec 7, 2022
1 parent 93eac4e commit afc1bb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export interface Router {
getFetcher(key?: string): any;
deleteFetcher(key?: string): void;
dispose(): void;
encodeLocation(to: To): Path;
}

export type CreateRouterFunction = (routes: RouteObject[], opts?: any) => Router;

0 comments on commit afc1bb1

Please sign in to comment.