Skip to content

Commit 18103de

Browse files
committed
Fixed replace method name
1 parent e3a31c5 commit 18103de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-router.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ declare module ReactRouter {
235235
*
236236
* @param {LocationDescriptor} pathOrLoc
237237
*/
238-
push(pathOrLoc: LocationDescriptor);
238+
replace(pathOrLoc: LocationDescriptor);
239239

240240
/**
241241
* Go forward or backward in the history by n or -n.

0 commit comments

Comments
 (0)