route overview
Added in v0.6.0
Table of contents
routes
Query (interface)
Signature
export interface Query {
[key: string]: QueryValues
}
Added in v0.4.0
QueryValues (type alias)
Signature
export type QueryValues = string | Array<string> | undefined
Added in v0.4.0
Route (class)
Signature
export declare class Route {
constructor(readonly parts: Array<string>, readonly query: Query)
}
Added in v0.4.0
isEmpty (static method)
Signature
static isEmpty(r: Route): boolean
Added in v0.4.0
parse (static method)
Signature
static parse(s: string, decode: boolean = true): Route
Added in v0.4.0
toString (method)
Signature
toString(encode: boolean = true): string
Added in v0.4.0