Skip to content

getVariableByIdAsync

Finds a variable by ID. If not found or the provided ID is invalid, returns a promise containing null.

Signature

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

Parameters

  • id: The variable ID to search for, which represents a unique identifier for the variable.