Skip to content

Commit afc1bb1

Browse files
authored
fix(react): Add type for React Router's encodeLocation method (#6439)
1 parent 93eac4e commit afc1bb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export interface Router {
236236
getFetcher(key?: string): any;
237237
deleteFetcher(key?: string): void;
238238
dispose(): void;
239+
encodeLocation(to: To): Path;
239240
}
240241

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

0 commit comments

Comments
 (0)