interface TSDeclareFunction {
    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;
    params: (Identifier | RestElement | Pattern)[];
    range?: [number, number];
    returnType?: null | Noop | TSTypeAnnotation;
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "TSDeclareFunction";
    typeParameters?: null | Noop | TSTypeParameterDeclaration;
}

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
start?: null | number
trailingComments?: null | Comment[]
type: "TSDeclareFunction"
typeParameters?: null | Noop | TSTypeParameterDeclaration