effect-motion
API Referenceeffect-motionNamespacesFontFunctions

Loader

function Loader<ID>(id): Service<FontLoader<ID>, FontLoader<ID>>;

Function: Loader()

function Loader<ID>(id): Service<FontLoader<ID>, FontLoader<ID>>;

Defined in: packages/motion/src/Font.ts:47

The context key for a font's loader, derived from the id string alone — the bridge over literal erasure: frame data carries only { id: string }, and rebuilding the key from that string resolves the same service the authored constant provides.

Type Parameters

Type Parameter
ID extends string

Parameters

ParameterType
idID

Returns

Service<FontLoader<ID>, FontLoader<ID>>

On this page