UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

10 lines (9 loc) 528 B
export type ArithmeticOperator = '+' | '-' | '*' | '/'; /** * The Value is determined by an arithmetic operator followed by a number. */ export type SimpleArithmeticString = `${ArithmeticOperator}${number}`; export type KartContextVariable = '$kart.configuredSpeed' | '$kart.powerUpTime'; export type ContextVariable = KartContextVariable; export type ContextArithmeticString = `${ContextVariable} ${ArithmeticOperator} ${number}`; export type ArithmeticExpression = number | SimpleArithmeticString | ContextArithmeticString;