Options
All
  • Public
  • Public/Protected
  • All
Menu
class

Resources

Hierarchy

  • ResourceLoader

Index

Constructors

constructor

Methods

getPromise

  • getPromise<T>(fullyQualifiedNamespace: string, convertor: function): PromiseLike<T>
  • Returns a promise for the resource key.

    function

    getPromise

    throws

    {Error}

    Type parameters

    • T

    Parameters

    • fullyQualifiedNamespace: string

      The resource key.

    • convertor: function
        • (any: any): any
        • Parameters

          • any: any

          Returns any

    Returns PromiseLike<T>

    The resource value.

register

  • register(key: string, uri: string, liveSeconds?: number): void
  • Configure a resource

    function

    register

    throws

    {Error}

    Parameters

    • key: string

      The resource key.

    • uri: string

      The resource URI.

    • Default value liveSeconds: number = 60

      The cache period.

    Returns void

undoRegister

  • undoRegister(key: string): void
  • Removes a registered item

    function

    undoRegister

    Parameters

    • key: string

      The resource key to be removed.

    Returns void

Generated using TypeDoc