AssetLoader
Defined in: AssetHandle.ts:25
Interface that plugins implement to load/unload a specific asset type.
Type Parameters
Section titled “Type Parameters”T = unknown
Methods
Section titled “Methods”load()
Section titled “load()”load(
path,data?):Promise<T>
Defined in: AssetHandle.ts:26
Parameters
Section titled “Parameters”string
unknown
Returns
Section titled “Returns”Promise<T>
unload()?
Section titled “unload()?”
optionalunload(path,asset):void|Promise<void>
Defined in: AssetHandle.ts:28
Resolves when resources are released and the path can be loaded again.
Parameters
Section titled “Parameters”string
T
Returns
Section titled “Returns”void | Promise<void>
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.