mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

Missing types 'largerEq' and 'or' in OperatorNodeMap

Open DamienVicet opened this issue 3 years ago • 1 comments

Hello, it seems that some functions are missing in type OperatorNodeMap added in #2576 :

  type OperatorNodeMap = {
    xor: 'xor'
    and: 'and'
    bitOr: '|'
    bitXor: '^|'
    bitAnd: '&'
    equal: '=='
    unequal: '!='
    smaller: '<'
    larger: '>'
    smallerEq: '<='
    leftShift: '<<'
    rightArithShift: '>>'
    rightLogShift: '>>>'
    to: 'to'
    add: '+'
    subtract: '-'
    multiply: '*'
    divide: '/'
    dotMultiply: '.*'
    dotDivide: './'
    mod: 'mod'
    unaryPlus: '+'
    unaryMinus: '-'
    bitNot: '~'
    not: 'not'
    pow: '^'
    dotPow: '.^'
    factorial: '!'
  }

For example, or and largerEq are missing.

DamienVicet avatar Jul 27 '22 12:07 DamienVicet

Thanks for reporting!

Who can go through the list with operators and add the missing ones to the TypeScript definitions?

josdejong avatar Jul 27 '22 14:07 josdejong