Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function kindForFormat

    • Map a file format to its media kind (pdf/epub → book, mp3 → audio, mp4/webm → video).

      Parameters

      • format: "pdf" | "epub" | "mp3" | "mp4" | "webm"

      Returns "book" | "audio" | "video"