Files
airllm-fork-nodejs/node_modules/node-llama-cpp/dist/chatWrappers/generic/utils/getFirstValidResult.d.ts
2026-02-05 15:27:49 +08:00

7 lines
310 B
TypeScript

/**
* Call the functions in the array one by one and return the result of the first one that doesn't throw an error.
*
* If all functions throw an error, throw the error of the last function.
*/
export declare function getFirstValidResult<const T extends (() => any)[]>(options: T): ReturnType<T[number]>;