Preview:```ts
const x = [
{value: 1},
{value: "str"},
{value: true},
] as const
type X = typeof x
type Y_Expected = readonly [1, "str", true]
type Y_Broken = {
readonly [k in keyof X]: X[k]["value"]
}
type Y_Helper<T extends readonly any[]> = {
readonly [k in keyof T]: T[k]["value"]
}
...```
You can choose specific lines to embed by selecting them before copying the link.