Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Loader
    • Loader

Index

Type aliases

Static MiddlewareFn

MiddlewareFn: function

Type declaration

    • (resource: Resource, next: function): void
    • Parameters

      • resource: Resource
      • next: function
          • (): void
          • Returns void

      Returns void

Static OnCompleteSignal

OnCompleteSignal: function

Type declaration

    • Parameters

      Returns void

Static OnErrorSignal

OnErrorSignal: function

Type declaration

    • (errMessage: string, loader: Loader, resource: Resource): void
    • Parameters

      • errMessage: string
      • loader: Loader
      • resource: Resource

      Returns void

Static OnLoadSignal

OnLoadSignal: function

Type declaration

    • (loader: Loader, resource: Resource): void
    • Parameters

      • loader: Loader
      • resource: Resource

      Returns void

Static OnProgressSignal

OnProgressSignal: function

Type declaration

    • (loader: Loader, resource: Resource): void
    • Parameters

      • loader: Loader
      • resource: Resource

      Returns void

Static OnStartSignal

OnStartSignal: function

Type declaration

    • (loader: Loader): void
    • Parameters

      • loader: Loader

      Returns void

Static ResourceMap

ResourceMap: Partial<Record<string, Resource>>

Static UrlResolverFn

UrlResolverFn: function

Type declaration

    • (url: string, parsed: ReturnType<any>): string
    • Parameters

      • url: string
      • parsed: ReturnType<any>

      Returns string

Constructors

constructor

  • new Loader(baseUrl?: undefined | string, concurrency?: undefined | number): Loader
  • Parameters

    • Optional baseUrl: undefined | string
    • Optional concurrency: undefined | number

    Returns Loader

Properties

defaultQueryString

defaultQueryString: string

loading

loading: boolean

onComplete

onComplete: Signal<OnCompleteSignal>

onError

onError: Signal<OnErrorSignal>

onLoad

onLoad: Signal<OnLoadSignal>

onProgress

onProgress: Signal<OnProgressSignal>

onStart

onStart: Signal<OnStartSignal>

progress

progress: number

resources

resources: ResourceMap

Static DefaultMiddlewarePriority

DefaultMiddlewarePriority: 50 = 50

Accessors

baseUrl

  • get baseUrl(): string
  • set baseUrl(url: string): any
  • Returns string

  • Parameters

    • url: string

    Returns any

concurrency

  • get concurrency(): number
  • set concurrency(concurrency: number): any
  • Returns number

  • Parameters

    • concurrency: number

    Returns any

Methods

add

  • add(url: string): this
  • add(name: string, url: string): this
  • add(options: IAddOptions): this
  • add(resources: (string | IAddOptions)[]): this
  • Parameters

    • url: string

    Returns this

  • Parameters

    • name: string
    • url: string

    Returns this

  • Parameters

    • options: IAddOptions

    Returns this

  • Parameters

    • resources: (string | IAddOptions)[]

    Returns this

addUrlResolver

  • Parameters

    Returns this

load

  • Parameters

    Returns this

reset

  • reset(): this
  • Returns this

use

  • use(fn: MiddlewareFn, priority?: undefined | number): this
  • Parameters

    Returns this

Static use

  • use(fn: MiddlewareFn, priority?: undefined | number): Loader
  • Parameters

    Returns Loader

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc