React Use Typescript Or Statement In Matlab