Interface SegmentRoute<Locales, RouteRef>

interface SegmentRoute<Locales, RouteRef> {
    defaultRoute: undefined | EndRoute<Locales, RouteRef>;
    getPath: ((locale?) => RoutePathInterface);
    isLocalized: (() => boolean);
    isSegment: (() => true);
    nestedRoutes: Route<RoutePathInterface, Locales, RouteRef>[];
    toJSON: (() => any);
    toString: (() => string);
}

Type Parameters

Hierarchy (view full)

Properties

defaultRoute: undefined | EndRoute<Locales, RouteRef>
getPath: ((locale?) => RoutePathInterface)

Type declaration

isLocalized: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

isSegment: (() => true)

Type declaration

    • (): true
    • Returns true

toJSON: (() => any)

Type declaration

    • (): any
    • Returns any

toString: (() => string)

Type declaration

    • (): string
    • Returns string