type-alias / @typed/router

GuardOutput

Extracts the successful narrowed value produced by a Guard.

Package version
1.0.0-beta.13
Category
Candidate guards
Since
1.0.0

Import

import type { GuardOutput } from "@typed/router";

Signatures

export type GuardOutput<G> = GuardType.Output<G>;

Why

Guarded handlers receive the proven output rather than the original route parameter type.

Ownership and lifetime

Computed only by TypeScript. The accepted value itself is produced by one guard invocation and retained by the selected route parameter RefSubject.

Other public imports

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

Source