type-alias / @typed/router/Matcher

Matcher.Success

Extracts a Matcher’s success output type.

Package version
1.0.0-beta.13
Category
Matcher type inference
Since
1.0.0
Member of
Matcher

Import

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

Access Matcher.Success through the imported Matcher export. Its declaration below describes the member.

Signatures

type Success<T> = [
    T
] extends [
    Matcher<infer A, infer _E, infer _R>
] ? A : never;

Why

Higher-level router builders can preserve output unions through composition.

Ownership and lifetime

Computed only by TypeScript; it does not retain a Matcher or any emitted value.

Other public imports

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

Source