MemberItem
ts
export interface MethodItem {
name: string;
accessibility?: "public" | "private" | "protected";
static?: boolean;
async?: boolean;
abstract?: boolean;
isGetter?: boolean;
isSetter?: boolean;
readonly?: boolean;
arguments: MethodParamInfo[];
typeParameters?: TypeParameterInfo[];
returnType?: string;
returnTypeAst?: any;
decorators?: DecoratorInfo[];
loc?: Range;
jsdoc?: string;
}WARNING
Not to be used directly.
Representation of a method item in the TypeScript AST. This interface includes properties specific to method declarations within a class or interface, such as the method's name, its parameters, return type, and any decorators applied to it. It also includes information about the method's accessibility, whether it is static, async, abstract, a getter or setter, and its location in the source code for reference.