Búsqueda de sitios web

typescript - ¿Cómo crear un arreglo de diferentes genéricos?


Me gustaría crear un arreglo de arreglos donde los tipos tengan que ser los mismos. Ej.

// Implements the type
[['foo', 'bar'], [null, null], [1, 2]]

// Doesn't implement the type
[[1, 'foo'], [true, undefined]]

¿Cómo podría hacerse esto en TypeScript?