interface ClassMethod {
    abstract?: null | boolean;
    access?: null | "public" | "private" | "protected";
    accessibility?: null | "public" | "private" | "protected";
    async: boolean;
    body: BlockStatement;
    computed: boolean;
    decorators?: null | Decorator[];
    end?: null | number;
    extra?: Record<string, unknown>;
    generator: boolean;
    innerComments?: null | Comment[];
    key: Expression;
    kind: "get" | "method" | "set" | "constructor";
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    optional?: null | boolean;
    override?: boolean;
    params: (Identifier | RestElement | TSParameterProperty | Pattern)[];
    range?: [number, number];
    returnType?: null | Noop | TSTypeAnnotation | TypeAnnotation;
    start?: null | number;
    static: boolean;
    trailingComments?: null | Comment[];
    type: "ClassMethod";
    typeParameters?: null | Noop | TSTypeParameterDeclaration | TypeParameterDeclaration;
}

Hierarchy (view full)

Properties

abstract?: null | boolean
access?: null | "public" | "private" | "protected"
accessibility?: null | "public" | "private" | "protected"
async: boolean
computed: boolean
decorators?: null | Decorator[]
end?: null | number
extra?: Record<string, unknown>
generator: boolean
innerComments?: null | Comment[]
kind: "get" | "method" | "set" | "constructor"
leadingComments?: null | Comment[]
loc?: null | SourceLocation
optional?: null | boolean
override?: boolean
range?: [number, number]
returnType?: null | Noop | TSTypeAnnotation | TypeAnnotation
start?: null | number
static: boolean
trailingComments?: null | Comment[]
type: "ClassMethod"