API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceAssetStatus

@codexo/exojs / assets / stable

Uniform, read-only load-status contract surfaced by every asset handle and ref. A public projection of the handle's internal `LoadState`: `Texture`, `Sound`, and AssetRef each expose `state`, `ready`, and `error` directly (plus their own `loaded` promise), so they structurally satisfy this interface. No separate status object is created.

3
props
0
methods
0
events
Import
import { AssetStatus } from '@codexo/exojs'

Uniform, read-only load-status contract surfaced by every asset handle and ref. A public projection of the handle's internal `LoadState`: `Texture`, `Sound`, and AssetRef each expose `state`, `ready`, and `error` directly (plus their own `loaded` promise), so they structurally satisfy this interface. No separate status object is created.

Properties3
error: Error | null
The error the last load failed with, or null outside 'failed'.
ready: boolean
true exactly when state is 'ready'.
Source