Open this example in the interactive library
Source code
type Point = readonly [x: number, y: number];
const point: Point = [3, 4];
console.log([
["name", "Ada"],
["score", 9],
] satisfies [[string, string], [string, number]]);
Sample output
[ [ 'name', 'Ada' ], [ 'score', 9 ] ]
