schema-components - v3.7.0
    Preparing search index...

    Function discriminatedUnionValueForTab

    • Pure helper: convert a tab index into the new value the discriminated union should emit. Returns undefined when the index is out of bounds.

      Extracted so the contract is unit-testable without instantiating the Vue component (which relies on the Vue runtime).

      Parameters

      • optionLabels: readonly string[]
      • discKey: string
      • newIndex: number

      Returns Record<string, string> | undefined