@adcp/sdk API Reference - v14.0.0-beta.6
    Preparing search index...

    Function getFormatAssets

    • Get asset slots from any structural asset container.

      Returns the assets from the v3 assets field. For backward compatibility with v2 servers, this function also handles the deprecated assets_required field if present.

      Parameters

      Returns CanonicalFormatAssetSlot[]

      Array of assets

      const assets = getFormatAssets({
      assets: [FormatAsset.image({ asset_id: 'hero', required: true })]
      });