Skip to content

FunctionItem

ts
export interface FunctionItem extends BaseItem {
    arguments: ParamInfo[];
    typeParameters?: TypeParameterInfo[];
    returnType?: string;
    returnTypeAst?: any;
}

WARNING

Not to be used directly.

Representation of a function item in the TypeScript AST. This interface extends BaseItem and includes properties specific to function declarations, such as the function's parameters, optional type parameters, return type, and an optional abstract syntax tree (AST) representation of the return type for more detailed analysis.

References