Skip to content

BaseItem

ts
export interface BaseItem {
    name: string | null;
    type: string;
    level: "top" | "sub";
    exports?: ExportKind;
    jsdoc?: string;
    decorators?: DecoratorInfo[];
    loc?: Range;
}

WARNING

Not to be used directly.

Representation of a base item in the TypeScript AST. This interface is extended by specific item types like VariableItem, FunctionItem, ClassItem, etc., to include additional properties relevant to those item types.

References