Typescript Define Type With Array In Java