Arize Phoenix TS
    Preparing search index...
    • If the incoming function returns a promise, return the promise. Otherwise, return a promise that resolves to the incoming function's return value.

      Type Parameters

      • Result

      Parameters

      Returns
          | (
              Result extends Promise<ResolvedValue> ? Promise<ResolvedValue> : never
          )
          | (Result extends Promise<unknown> ? never : Promise<Result>)