SetItemtype

X extends ReadonlySet<infer Y> ? Y : never
Type
ReadonlySet
Y

Get the type of the items in a set.