@ue-too/being / ExtractStateNames
Type Alias: ExtractStateNames<StatesArray>
ExtractStateNames<
StatesArray> =StatesArrayextends readonly infer S[] ?Sextendsstring?S:string:StatesArrayextends infer S[] ?Sextendsstring?S:string:string
Defined in: schema-factory.ts:202
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.
Type Parameters
StatesArray
StatesArray
The states array type