Skip to content

getLocalVariablesAsync

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

Signature

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

Parameters

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