providerplaneai
    Preparing search index...

    Function expectObjectForCapability

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

      Type Parameters

      • T extends object

      Parameters

      • capability: CapabilityKeyType

        The capability key.

      • value: unknown

        The value to check.

      • label: string

        Label for error messages.

      Returns T

      The value as an object.

      Error if value is not an object.