PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-api/dist/src
Просмотр файла: util.d.ts
import * as utxolib from '@bitgo/utxo-lib';
import { V1Network } from '@bitgo/sdk-core';
export declare function getNetwork(network?: V1Network): utxolib.Network;
/**
* A native Promise-based replacement for Bluebird.try
*
* This function executes the provided function and returns a Promise.
* If the function throws synchronously, the exception is caught and returned as a rejected Promise.
* If the function returns a Promise, that Promise is returned.
* If the function returns any other value, a resolved Promise with that value is returned.
*
* @param {Function} fn - The function to execute
* @returns {Promise<T>} A promise that resolves with the return value of fn or rejects with any error thrown
*/
export declare function tryPromise<T>(fn: () => T | Promise<T>): Promise<T>;
//# sourceMappingURL=util.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!