Combined: ((this: void, next: ((this: void, target: URLTarget) => void), when: "pretend" | "pre-open" | "pre-replace", from: Page, to: Page) => void)

Type declaration

    • (this: void, next: ((this: void, target: URLTarget) => void), when: "pretend" | "pre-open" | "pre-replace", from: Page, to: Page): void
    • Combined navigation agent signature.

      This is what is available under NavigationAgent key.

      Parameters

      • this: void
      • next: ((this: void, target: URLTarget) => void)

        Either calls the next agent in chain, or applies the final navigation target if this agent is the last one. Not calling this function effectively prevents navigation. Accepts an optional Target parameter. The original target will be used instead when omitted.

          • (this: void, target: URLTarget): void
          • Parameters

            Returns void

      • when: "pretend" | "pre-open" | "pre-replace"

        When navigation occurred. Either pretend, pre-open, or pre-replace.

      • from: Page

        The page to leave.

      • to: Page

        Navigation target page.

      Returns void

Generated using TypeDoc