Strips index signatures ([K: string], [K: number], [K: symbol]) from an object type, keeping only explicitly-named keys. Useful when a type flows through a constraint like Record<string, V> which adds an implicit index.
[K: string]
[K: number]
[K: symbol]
Record<string, V>
Strips index signatures (
[K: string],[K: number],[K: symbol]) from an object type, keeping only explicitly-named keys. Useful when a type flows through a constraint likeRecord<string, V>which adds an implicit index.