KennethanCeyer/metric-parser

View on GitHub
src/tree/simple.tree/type.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type Node = Tree | Operand;

export interface Tree {
    operator: string;
    operand1: Node;
    operand2: Node;
}

export interface Operand {
    value: ValueObject;
}

export interface ValueObject {
    type: string;
    item?: ItemValue;
    unit?: UnitValue;
}

export type Value  = ItemValue | UnitValue;

export type ItemValue = any;

export type UnitValue = string | number;