MatchingKeys type
type MatchingKeys<TRecord, TMatch, K> = K extends (
TRecord[K] extends TMatch ? K : never
)
? K
: never
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
type MatchingKeys<TRecord, TMatch, K> = K extends (
TRecord[K] extends TMatch ? K : never
)
? K
: never