NavigateArgs
The rest parameters after the target: the options, required when the pattern has required params.
The rest parameters after the target: the options, required when the pattern has required params.
Import#
ts
import type { NavigateArgs } from "@shadow-js/router";
Signature#
ts
type NavigateArgs<P extends string> =
NeedsParams<P> extends true
? [options: NavigateOptionsFor<P>]
: [options?: NavigateOptionsFor<P>]