typograph-editor-documentation
    Preparing search index...

    Function apply_host_manifest

    • Applies the host's manifest to doc. Answers which source it came from, 'failed' when either source threw or the pull provider answered nothing usable (logged, nothing applied, no fallback — the host said it supplies the manifest), or null when the host supplies none.

      ⚠️ It never rejects. Both call sites on open (editorapp.ts, viewer.ts) start it and do not wait, so a rejection — a malformed pushed manifest, a font that fails to load — would surface as an unhandled rejection in the host's page on every document open. Both sources are inside the one try for that reason.

      Parameters

      • doc: any

      Returns Promise<host_manifest_result>