Interface ILoader<T, T2>

interface ILoader<T, T2> {
    loadAsync(url, onProgress?): Promise<any>;
    transform?(res, options): T2 | Promise<T2>;
}

Type Parameters

  • T = any

  • T2 = any

Hierarchy

Implemented by

Methods

  • Parameters

    • url: string
    • Optional onProgress: ((event) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    Returns Promise<any>

Generated using TypeDoc