@@ -224,18 +224,17 @@ module Navigation = {
224224 @send
225225 external setOptions : (navigation , options ) => unit = "setOptions"
226226
227- @send external replace : (navigation , string ) => unit = "replace"
228- @send
227+ @send external replace : (navigation , string , ~ params : 'params = ? ) => unit = "replace"
228+ @deprecated ( "Use `replace` with `~params` instead" ) @ send
229229 external replaceWithParams : (navigation , string , 'params ) => unit = "replace"
230230
231- @send external push : (navigation , string ) => unit = "push"
232- @send external pushWithParams : (navigation , string , 'params ) => unit = "push"
231+ @send external push : (navigation , string , ~params : 'params = ?) => unit = "push"
232+ @deprecated ("Use `push` with `~params` instead" ) @send
233+ external pushWithParams : (navigation , string , 'params ) => unit = "push"
233234
234235 @send external pop : (navigation , ~count : int = ?, unit ) => unit = "pop"
235236
236- @send external popTo : (navigation , string ) => unit = "popTo"
237- @send
238- external popToWithParams : (navigation , string , 'params ) => unit = "popTo"
237+ @send external popTo : (navigation , string , ~params : 'params = ?) => unit = "popTo"
239238
240239 @send external popToTop : (navigation , unit ) => unit = "popToTop"
241240
0 commit comments