( values: T, value: string, )
| 5 | * a string-literal union). Narrows `value` to the tuple's element union. |
| 6 | */ |
| 7 | export function isStringMember<const T extends readonly string[]>( |
| 8 | values: T, |
| 9 | value: string, |
| 10 | ): value is T[number] { |
| 11 | return values.includes(value); |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Strict (exact-match) parse for an `as const` string tuple. Throws an |
no outgoing calls
no test coverage detected