X extends ReadonlyMap<infer Y, unknown> ? Y : never
ReadonlyMap
Y
Extract the type for the key of a map.