Interface NavWithRule

Matches any navigation where the provided routes match the new or old URL, regardless of order.

interface NavWithRule {
    class?: string;
    type: ExtendedNavigationType;
    with: string | [string, string];
}

Hierarchy

  • NavRule
    • NavWithRule

Properties

Properties

class?: string

If provided, the class (with a vt- prefix) would be applied for the duration of the view transition if the navigation was matched.

A navigation type to match. Supports either standard NavigationType values, with a few additions:

  • "back" matches a "traverse" navigation of -1.
  • "forward" matches a "traverse" navigation of 1.
  • "auto" matches any navigation apart from "reload".
with: string | [string, string]

Generated using TypeDoc