Preview:```ts
const x = new Set(["a", "b"])
type X = typeof x
type GenericTypeParam<T> = T extends Set<infer Y>
? Y
: never // How do I make this more generic, not just for a Set?
type XGenTypeParam = GenericTypeParam<X> //string
const data = [1, 2, 3, 2, 4, 3] as const
...```
You can choose specific lines to embed by selecting them before copying the link.