Typescript Check If String Is Integer Or Rational 822