I have been delving into an existing TypeScript typing file, despite my limited experience in creating them. While some types make sense to me, like
contactId: undefined | string
Populate(id: undefined | string, referenceType: ReferenceType): void
I have come across a type definition in many of the files that is puzzling to me
[key: string]: any
This seems to be a general type that covers certain functions - (I am curious about how it maintains type safety and what specific types can be used with it)
My primary question is "What category does this type fall under?"
With this information, I hope to find it in the TypeScript handbook / documentation and deepen my understanding. I attempted to search for it here before reaching out: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html