wrapping navigate (with types)

i'd like to build a wrapper function for
navigate
. is there a guide on how to do? especially type wise, it doesn't look easy.
Was this page helpful?