Skip to content

createAssetHandle

createAssetHandle<TValue>(input): AssetHandle<TValue>

Defined in: src/modules/asset-loader/asset-loader.ts:230

The low-level AssetHandle factory: pairs a kind + url with a load function and a normalized cache identity. The typed helpers below (imageAsset, jsonAsset, …) wrap this for the common kinds; reach for it directly only when writing a loader for a custom asset kind.

TValue

string

AssetKind

(context, options) => Promise<TValue>

string

AssetHandle<TValue>