Options
All
  • Public
  • Public/Protected
  • All
Menu

An object that resolves relative URLs.

Hierarchy

  • IResolver

Implemented by

Index

Properties

Methods

Properties

Optional isLocal

isLocal: (url: string) => boolean

Type declaration

    • (url: string): boolean
    • Whether the URL should be handled by the resolver or not.

      Notes

      This is similar to the isLocal check in URLExt, but can also perform additional checks on whether the resolver should handle a given URL.

      Parameters

      • url: string

      Returns boolean

Methods

getDownloadUrl

  • getDownloadUrl(url: string): Promise<string>
  • Get the download url for a given absolute url path.

    Notes

    This URL may include a query parameter.

    Parameters

    • url: string

    Returns Promise<string>

resolveUrl

  • resolveUrl(url: string): Promise<string>
  • Resolve a relative url to an absolute url path.

    Parameters

    • url: string

    Returns Promise<string>

Generated using TypeDoc