Skip to content

getVariableByIdAsync

根据 ID 查找变量。如果未找到或提供的 ID 无效,则返回一个包含 null 的 promise。

签名

typescript
getVariableByIdAsync(id: string): Promise<VariableNode | null>

参数

  • id: 要搜索的变量的 ID,表示变量的唯一标识符。