Runtime API / Function

createFlamoWrapperContract

把 Artifact 的公开 surface 投影成 Custom Element wrapper 契约。

使用说明

用于打包或宿主适配阶段生成 attributes、properties、events 等 W3C 接口描述。它描述契约,不负责注册元素或创建 Runtime Instance。

参数

artifactFlamoArtifact
optionsCreateFlamoWrapperContractOptions