providerplaneai
    Preparing search index...

    Function expectArrayForCapability

    • Asserts that a value is an array, throws if not.

      Type Parameters

      • T

      Parameters

      • capability: CapabilityKeyType

        The capability key.

      • value: unknown

        The value to check.

      • label: string

        Label for error messages.

      Returns T[]

      The value as an array.

      Error if value is not an array.