effect-motion
API Referenceeffect-motionNamespacesImageInterfaces

ImageResource

One image constant, two faces — author side (`yield*` for the value and

Interface: ImageResource<ID>

Defined in: packages/motion/src/Image.ts:53

One image constant, two faces — author side (yield* for the value and the phantom ImageLoader<ID> requirement) and provider side (.Loader plus layer). See Font.Font for the full contract; images follow it exactly.

Extends

Type Parameters

Type ParameterDefault type
ID extends stringstring

Properties

id

readonly id: ID;

Defined in: packages/motion/src/Image.ts:55


Loader

readonly Loader: Service<ImageLoader<ID>, ImageLoader<ID>>;

Defined in: packages/motion/src/Image.ts:56

On this page