Extracts the keys of an object type whose values are of type string or number.
This utility type iterates over the keys of a given type T and returns a union of
those keys whose corresponding values extend either string or number.
It is useful when you want to constrain operations (e.g., indexing or mapping) only
to fields that are compatible with being used as object keys (e.g., for hashmaps).
Extracts the keys of an object type whose values are of type
stringornumber.This utility type iterates over the keys of a given type
Tand returns a union of those keys whose corresponding values extend eitherstringornumber.It is useful when you want to constrain operations (e.g., indexing or mapping) only to fields that are compatible with being used as object keys (e.g., for hashmaps).