@backblaze-labs/b2-mcp
    Preparing search index...

    Function findInCauseChain

    • Find the first value in an error cause chain that matches a predicate.

      Type Parameters

      • T

      Parameters

      • value: unknown

        Root error-like value to inspect.

      • predicate: (value: unknown) => T | undefined

        Matcher returning a result for the desired value.

      Returns T | undefined

      The predicate result for the first match, or undefined.