MapKeytype

X extends ReadonlyMap<infer Y, unknown> ? Y : never
Type
ReadonlyMap
Y

Extract the type for the key of a map.