modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface PivotFieldRef

    A <field> of <rowFields> or <colFields>, naming a pivot field by its x index. x: -2 is the values field, which holds the data fields; with two or more data fields and no -2 in either list, the writer appends it to <colFields> (Excel refuses the table without it).

    interface PivotFieldRef {
        x: number;
    }
    Index
    x
    x: number