String vs Integer type for navigateWithTransition() hook

Our shop mini is getting rejected due to a specific detail around navigation but if I follow the review feedback for navigation, it is not valid with the current shop-minis Typescript classes. I am told to use navigateWithTransition(-1) to go back to the previous screen but this hook wants a string. Using ‘-1’ this does not work. I solved the issue by using -1 integer value and telling TypeScript to ignore the line but this is obviously a band-aid fix.

Hey @brayden.girard keep in mind that the submission most probably will be rejected if there are disable/ignore hints in the code.

I can see that navigateWithTransition accepts a number - where are you seeing that it doesn’t?

Apologies it’s the TransitionLink component

{/* @ts-expect-error - TransitionLink accepts -1 for back navigation */}

Oh I see - good catch! Raised a ticket (Internal id #89423)