PropertyKey is a global type in TypeScript that represents the data type of a property key. It can be a
symbol, or a
You don't need to import it into your project - it's available globally.
// string | number | symboltype Example = PropertyKey;
This can be useful in a sticky situation where you want to create record types with all possible keys:
type RecordWithAllKeys = Record<PropertyKey,unknown>;