LoaderDefinition
Defined in: src/loaders/types.ts:5
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
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description |
|---|---|---|
name | string | Unique loader name |
matches | (source: any) => boolean | Is this loader able to process the input source type? |
load | (source: T) => Promise<ArrayBufferLike> | Try loading the source (can be async) and return an ArrayBuffer |