jsdoc-type-pratt-parser
    Preparing search index...

    Interface FunctionResult

    A function type. Has parameters which can be named, if the grammar supports it. Some grammars only allow named this and new parameters. Named parameters are returned as KeyValueResults. It can have a returnType. It can be a normal function type or an arrow, which is indicated by arrow. If parenthesis is false, it is any kind of function without specified parameters or return type.

    interface FunctionResult {
        arrow: boolean;
        constructor: boolean;
        loc?: {
            end: { column: number; line: number };
            start: { column: number; line: number };
        };
        meta?: {
            parameterSpacing: string;
            postGenericSpacing?: string;
            postReturnMarkerSpacing: string;
            preReturnMarkerSpacing: string;
            typeParameterSpacing: string;
        };
        parameters: (RootResult | KeyValueResult)[];
        parenthesis: boolean;
        range?: [number, number];
        returnType?: RootResult;
        type: "JsdocTypeFunction";
        typeParameters?: TypeParameterResult[];
    }

    Hierarchy (View Summary)

    Index
    arrow: boolean
    constructor: boolean

    The initial value of Object.prototype.constructor is the standard built-in Object constructor.

    loc?: {
        end: { column: number; line: number };
        start: { column: number; line: number };
    }
    meta?: {
        parameterSpacing: string;
        postGenericSpacing?: string;
        postReturnMarkerSpacing: string;
        preReturnMarkerSpacing: string;
        typeParameterSpacing: string;
    }
    parameters: (RootResult | KeyValueResult)[]
    parenthesis: boolean
    range?: [number, number]
    returnType?: RootResult
    type: "JsdocTypeFunction"
    typeParameters?: TypeParameterResult[]