Skip to main content

Type Alias: LoaderFn

LoaderFn = () => Promise<Disposer>

Defined in: assets/record.ts:12

An opaque async load owned by the requesting package. Runs the load and resolves with a Disposer that frees it. The core never inspects what was loaded — this is how a component package (e.g. the code component's Shiki highlighter) loads its own resources without core depending on it.

Returns

Promise<Disposer>