refactor(vm, frontend): internally tag template enum, finish remap frontend

This commit is contained in:
Rachel Powers
2024-05-31 21:41:09 -07:00
parent 337ca50560
commit d618f7b091
20 changed files with 3059 additions and 451 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@ use wasm_bindgen::prelude::*;
#[derive(Clone, Debug, PartialEq, PartialOrd, Serialize, Deserialize)]
#[cfg_attr(feature = "tsify", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]
#[serde(untagged)]
#[serde(tag = "templateType")]
pub enum ObjectTemplate {
Structure(StructureTemplate),
StructureSlots(StructureSlotsTemplate),