Typescript Get Type In Array Jquery Validation W3schools