VariableItem
ts
export interface VariableItem extends BaseItem {
subtype?: "constant" | "let" | "var";
value?: string | number | boolean | null;
valueText?: string;
valueParsed?: any;
arguments?: any[];
}WARNING
Not to be used directly.
Representation of a variable item in the TypeScript AST. This interface extends BaseItem and includes properties specific to variable declarations, such as the subtype of the variable (constant, let, or var), its value (which can be a string, number, boolean, or null), an optional text representation of the value for documentation purposes, a parsed representation of the value for further analysis, and any arguments associated with the variable (if it is initialized with a function call or similar expression).