A class representing a TypeScript/JavaScript class with enhanced functionality for class manipulation. The TSClass provides comprehensive functionality for working with TypeScript/JavaScript classes, including handling class methods, attributes, JSX components, and inheritance relationships. It supports operations like adding source code to class bodies, managing class attributes, and handling React JSX components.
str | None
str
str
str | None
bool
bool
bool
bool
bool
bool
str | None
str
bool, optional
None
str
None
str
bool
bool
None
str
bool, optional
bool
str
None
str
None
int | None
bool
None
None
int | None
str
bool
int
bool
None
Union[list[str], str]
bool
list[str]
bool
str
str
str | None, optional
str | None, optional
bool, optional
str
str
str
str
int
str
str
bool
str
bool, optional
bool, optional
int, optional
bool, optional
None
str
bool
bool
int
bool
bool
None
bool
int | None
bool
bool
int | None, optional
bool, optional
bool, optional
bool
str
None
None
bool
int
bool
None
str
int
tuple[NodeId, NodeId]
str
str
int, optional
bool, optional
int, optional
int
regex_pattern
, similar to python’s re.search().
str
bool
bool
str
bool, optional
bool, optional
None
str
bool, optional
bool, optional
bool, optional
bool, optional
None
str
bool, optional
bool, optional
TSNode | None, optional
None
str
None
int | None, optional
int | None