Skip to content

pick

pick<T>(value, allowed): T

Narrows a category value to one of the known keys, or the first as the default.

T extends string

unknown

readonly T[]

T