Sanity Library Reference Docs
    Preparing search index...

    Interface Route

    interface Route {
        raw: string;
        segments: RouteSegment[];
        transform?: { [key: string]: RouteTransform<RouterState> };
    }
    Index

    Properties

    raw: string

    The raw string representation of the route.

    segments: RouteSegment[]

    An array of route segments that make up the route. See RouteSegment

    transform?: { [key: string]: RouteTransform<RouterState> }

    An optional object containing route transforms. See RouteTransform and RouterState