Produces a subset of a mapping type, where the keys either match some prefix string, or are in a list of exact matches.
type T = PickByPrefix<{foo_1: number, foo_2: number, nope: string, included: string, also: number}, 'foo_', 'included' | 'also'>.T = {foo_1: number, foo_2: number, included: string, also: number} Copy
type T = PickByPrefix<{foo_1: number, foo_2: number, nope: string, included: string, also: number}, 'foo_', 'included' | 'also'>.T = {foo_1: number, foo_2: number, included: string, also: number}
Produces a subset of a mapping type, where the keys either match some prefix string, or are in a list of exact matches.