Menu

Interface LoaderDefinition<T>

Loader interface The goal of a loader is to be able to tell when it can handle a particular source type, and then resolve an ArrayBuffer for that source.

Type parameters

  • T

Hierarchy

  • LoaderDefinition

Index

Properties

Properties

load

load: (source: T, resolve: LoaderResolve, reject: LoaderReject) => void

Try loading the source. Passes an ArrayBuffer to resolve() if successful, calls reject() with an optional error if not

Type declaration

matches

matches: (source: any) => boolean

Is this loader able to process the input source type?

Type declaration

    • (source: any): boolean
    • Parameters

      • source: any

      Returns boolean