Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IResolver

An object that resolves relative URLs.

Hierarchy

  • IResolver

Index

Properties

Methods

Properties

Optional isLocal

isLocal: function

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.

Type declaration

    • (url: string): boolean
    • Parameters

      • url: string

      Returns boolean

Methods

getDownloadUrl

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

    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