Clash Blueprint Engine API
    Preparing search index...

    Function migrateToCurrent

    • Detect a raw parsed layout's version and migrate it forward to the current shape. Returns the migrated bare snapshot object (still structurally unvalidated — the importer/engine validate and rebuild it). Unknown/too-new versions and non-objects fail as a Result error, never a throw.

      Parameters

      • raw: unknown

      Returns Result<RawObject, SaveFormatError>