Plumile JS API
    Preparing search index...

    Type Alias FlatRouteInput<TVariables>

    Input type for creating a FlatRoute instance.

    type FlatRouteInput<TVariables extends ParamData> = {
        matchFunction: MatchFunction<TVariables>;
        path: string;
        redirectTo?: string;
        routes: AnyRoute[];
    }

    Type Parameters

    • TVariables extends ParamData

      Route parameter types extracted from the URL path

    Index

    Properties

    matchFunction: MatchFunction<TVariables>

    Function to match URL paths against this route pattern

    path: string

    The URL path pattern for this route

    redirectTo?: string

    Optional redirect destination if this route should redirect

    routes: AnyRoute[]

    Nested routes that should be rendered within this route