Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core/src/utils

Index

Variables

Const dom

dom: Dom = new Dom()

Const history

history: History = new History()

Const pathToRegexp

pathToRegexp: pathToRegexp = ptr

Turn a route string such as /user/:name into a regular expression.

Used for:

  • routes to ignore
  • route transition resolution
see

https://www.npmjs.com/package/path-to-regexp

Functions

Const clean

  • clean(url?: string): string
  • Clean URL, remove "hash" and/or "trailing slash".

    Parameters

    • Default value url: string = window.location.href

    Returns string

Const getAbsoluteHref

  • getAbsoluteHref(url: string, base?: string): string

Const getHash

  • getHash(url: string): string

Const getHref

  • getHref(): string

Const getOrigin

  • getOrigin(): string

Const getPath

  • getPath(url?: string): string

Const getPort

  • getPort(url?: string): number

Const getQuery

Const nextTick

  • nextTick(): Promise<unknown>

Const parse

Const parseQuery

request

runAsync

  • runAsync(func: function, ctx?: any): function
  • Parameters

    • func: function
        • (...args: any[]): void | Promise<any>
        • Parameters

          • Rest ...args: any[]

          Returns void | Promise<any>

    • Default value ctx: any = {}

    Returns function

      • (...args: any[]): Promise<any>
      • Parameters

        • Rest ...args: any[]

        Returns Promise<any>

Const update

Generated using TypeDoc