Skip to content

SlotResolution

type SlotResolution = {
preset: VariantPreset;
slot: SlotDTO | null;
url: string | null;
};

Defined in: packages/asset-client/src/slots.ts:35

preset: VariantPreset;

Defined in: packages/asset-client/src/slots.ts:44

Effective preset — what url below was built with. Resolution order:

  1. caller’s preset override
  2. slot’s preset hint
  3. lg for images, video for video kind

slot: SlotDTO | null;

Defined in: packages/asset-client/src/slots.ts:37

The resolved DTO (null when the slot is unbound or asset missing).


url: string | null;

Defined in: packages/asset-client/src/slots.ts:46

The CDN URL the consumer should use.