Typescript Union Type Of Array In Numpy