Interface Route<T, Locales, RouteRef>

interface Route<T, Locales, RouteRef> {
    getPath: ((locale?) => T);
    isLocalized: (() => boolean);
    isSegment: (() => boolean);
    toJSON: (() => any);
    toString: (() => string);
}

Type Parameters

Hierarchy (view full)

Properties

getPath: ((locale?) => T)

Type declaration

    • (locale?): T
    • Parameters

      Returns T

isLocalized: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

isSegment: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

toJSON: (() => any)

Type declaration

    • (): any
    • Returns any

toString: (() => string)

Type declaration

    • (): string
    • Returns string