Type Alias ExtractStringOrArrayStrings<V>

ExtractStringOrArrayStrings: V extends string
    ? V
    : V extends (infer U extends string)[] ? U : never

Extracts string values from a type that may be a string or an array of strings. Returns the literal string if single value, array element types if array, or never.

Type Parameters

  • V

    The value to extract strings from.