TentoCMS
Type Aliases

Type Alias: MediaMode

Media serialization mode for public reads.
type MediaMode = "object" | "url";

Media serialization mode for public reads.

  • object (default): media references resolve to the full object ({ _url, _mimeType, _width, _height, _altText }).
  • url: media references resolve to just the URL string — a lighter payload for consumers that only need <img src> (drops dimensions/alt used for CLS/srcset/a11y).
Copyright © 2026