class / @typed/router

RouteGuardError

Reports that every decoded candidate’s guard failed or returned None.

Package version
1.0.0-beta.13
Category
Selection errors
Since
1.0.0

Import

import { RouteGuardError } from "@typed/router";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export declare class RouteGuardError extends RouteGuardError_base {
}

Why

Guard rejection stays distinct from path absence and schema decoding failure.

Ownership and lifetime

The executor allocates this immutable error only after every decoded guard candidate rejects. Its Cause array remains reachable through the error until consumers release it.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source