@ue-too/being / index / ExtractStateNames
型別別名: ExtractStateNames<StatesArray>
ExtractStateNames<
StatesArray> =StatesArrayextends readonly infer S[] ?Sextendsstring?S:string:StatesArrayextends infer S[] ?Sextendsstring?S:string:string
Helper type to extract state names from a states array. If the array is a readonly tuple of string literals, it extracts the union type. Otherwise, it falls back to string.
型別參數
StatesArray
StatesArray
The states array type