Skip to content

Kiln API / kiln / AssetHandle

Interface: AssetHandle<T> ​

A loading or loaded asset. Systems check ready (or failed) and never await.

Type Parameters ​

Type ParameterDefault type
Tunknown

Properties ​

PropertyModifierTypeDescription
pathreadonlystring-
kindreadonlyAssetKind-
readypublicboolean-
failedpublicboolean-
errorpublicstring | nullWhy loading failed, naming the fix.
valuepublicT | null-
promisereadonlyPromise<T>Resolves with the value; for code outside systems (startup scripts, tests).