Skip to content

AssetLoader

Defined in: AssetHandle.ts:25

Interface that plugins implement to load/unload a specific asset type.

T = unknown

load(path, data?): Promise<T>

Defined in: AssetHandle.ts:26

string

unknown

Promise<T>


optional unload(path, asset): void | Promise<void>

Defined in: AssetHandle.ts:28

Resolves when resources are released and the path can be loaded again.

string

T

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.