Skip to main content

getLocalVariablesAsync

Returns all local variables in the current file, optionally filtering by resolved type.

Signature

getLocalVariablesAsync(type?: VariableResolvedDataType): Promise<Variable[]>

Parameters

type

Filters the returned variables to only be of the given resolved type.