Skip to content

ClassItem

ts
export interface ClassItem extends BaseItem {
    items: Array<ClassMemberConstructor | ClassMemberProperty | ClassMemberMethod | IndexSignature>;
    typeParameters?: TypeParameterInfo[];
}

WARNING

Not to be used directly.

Representation of a class item in the TypeScript AST. This interface extends BaseItem and includes properties specific to class declarations, such as class members (constructors, properties, methods, and index signatures) and optional type parameters.

References