impasto
    Preparing search index...

    Interface Root

    An Impasto root.

    Contains line elements as children, each representing a line of code.

    interface Root {
        children: LineElement[];
        data?: RootData;
        position?: Position;
        type: "root";
    }

    Hierarchy

    Index

    Properties

    children: LineElement[]

    Children of root.

    data?: RootData

    Data associated with the hast root.

    position?: Position

    Position of a node in a source document.

    Nodes that are generated (not in the original source document) must not have a position.

    type: "root"

    Node type of hast root.