Skip to content

Intermact API Reference / @intermact/core / deserialize

Function: deserialize()

deserialize(project, options?): DeserializedProgram

Defined in: packages/core/src/serialize/serialize.ts:179

Reconstruct a playable Player from a SerializedProject. Replays the timeline op-log on a fresh StoryboardBuilder (which re-applies the same compile-time baseline patches the original build did), rebuilds the object tree and signals, and assembles a Player.

The payload is structurally validated first (validateSerializedProject) so corrupt input fails fast with a clear serialization-error.

Parameters

project

SerializedProject

options?

DeserializeOptions = {}

Returns

DeserializedProgram

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)