interface FunctionDeclaration {
    async: boolean;
    body: BlockStatement;
    declare?: null | boolean;
    end?: null | number;
    extra?: Record<string, unknown>;
    generator: boolean;
    id?: null | Identifier;
    innerComments?: null | Comment[];
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    params: (Identifier | RestElement | Pattern)[];
    predicate?: null | DeclaredPredicate | InferredPredicate;
    range?: [number, number];
    returnType?: null | Noop | TSTypeAnnotation | TypeAnnotation;
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "FunctionDeclaration";
    typeParameters?: null | Noop | TSTypeParameterDeclaration | TypeParameterDeclaration;
}

Hierarchy (view full)

Properties

async: boolean
declare?: null | boolean
end?: null | number
extra?: Record<string, unknown>
generator: boolean
id?: null | Identifier
innerComments?: null | Comment[]
leadingComments?: null | Comment[]
loc?: null | SourceLocation
range?: [number, number]
returnType?: null | Noop | TSTypeAnnotation | TypeAnnotation
start?: null | number
trailingComments?: null | Comment[]
type: "FunctionDeclaration"