Interface FunctionResult
interface FunctionResult {
arrow: boolean;
constructor: boolean;
parameters: (RootResult | KeyValueResult)[];
parenthesis: boolean;
returnType?: RootResult;
type: "JsdocTypeFunction";
}
arrow: boolean;
constructor: boolean;
parameters: (RootResult | KeyValueResult)[];
parenthesis: boolean;
returnType?: RootResult;
type: "JsdocTypeFunction";
}
A function type. Has
parameters
which can be named, if the grammar supports it. Some grammars only allow namedthis
andnew
parameters. Named parameters are returned as KeyValueResults. It can have areturnType
. It can be a normal function type or an arrow, which is indicated byarrow
. Ifparenthesis
is false, it is any kind of function without specified parameters or return type.