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

    Function convertTargetForFormat

    • The format a convert of format produces — pdf → epub, epub → pdf, and null for mp3/mp4/webm, which have no conversion target at all.

      One source of truth for the pair, deliberately shaped like kindForFormat: the API turns the null into a 400 and the client uses it to decide whether to offer the button and what to call it, and those two must never disagree about what a given format converts to.

      Parameters

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

      Returns "pdf" | "epub" | "mp3" | "mp4" | "webm" | null