pick
pick<
T>(value,allowed):T
Narrows a category value to one of the known keys, or the first as the default.
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”unknown
allowed
Section titled “allowed”readonly T[]
Returns
Section titled “Returns”T