• Get a variable value

    Type Parameters

    • T extends "stub"

    Parameters

    • varName: T

      The name of the variable to get

    Returns Promise<VariableMap[T]>

    • Returns a promise that resolves with the variable value and metadata
    // Get a variable value
    const var1 = await getVar('namespace.var1');
    console.log(var1.value); // Access the value
    console.log(var1.type); // Access the type