roll-parser - v3.4.0
    Preparing search index...

    Type Alias RollPartBase

    Fields shared by every RollPart variant. start/end mirror the source span of the AST node the part was evaluated from — present whenever the AST came from parse(), absent on hand-built ASTs.

    Useful for code that walks the parts tree generically: any part can be narrowed to this shape without switching on type first.

    type RollPartBase = {
        end?: number;
        start?: number;
        total: number;
    }
    Index
    end?: number
    start?: number
    total: number

    Sub-total this part contributed to its parent.