learn-content-engine - v0.42.0
    Preparing search index...

    Function inheritFromRootEntry

    learn-content-engine — framework-agnostic content parse/transform engine.

    Public API: the source→canonical boundary. A source adapter turns raw content (today: a single-JSON lesson) into the canonical internal lesson object (ContentLesson); the manifest transform projects a raw manifest.yaml set into a canonical ContentSetEntry.

    The library is framework-agnostic: no fetch, no database, no UI. The consumer supplies the raw bytes + set context and keeps network/persistence.

    • Combine a set's root-manifest entry with the entry in its own manifest (<path>/manifest.yaml, sets[0]) into one ParsedSet (engine#246, step 1).

      A field the set file leaves absent or null inherits the root entry's value, so a set hidden at the root stays hidden for a consumer that reads the set file; the projection defaults apply only when both entries are silent. Where both carry a value, the set file's is kept. Prefer resolveSetEntry, which applies the field ownership on top. Neither input is mutated.

      Parameters

      Returns ParsedSet

      Error when the two entries describe different sets (id differs).