DEV Community

Discussion on: Introduction to TypeScript Data Types — Tuple, Enum, and Any

Collapse
 
itsjzt profile image
Saurabh Sharma

Yeah I it now, but the syntax don't make very clear.

Thread Thread
 
aumayeung profile image
John Au-Yeung

Yea. It's better for it to not look like an array.

They probably just have to define tuples that way because it's an extension to JavaScript, so they can't define their own syntax.