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.
Type Parameters
Section titled “Type Parameters”TValue
Section titled “TValue”TValue
Parameters
Section titled “Parameters”identity?
Section titled “identity?”string
(context, options) => Promise<TValue>
string
Returns
Section titled “Returns”AssetHandle<TValue>