lightning
Version:
Lightning Network client library
20 lines (15 loc) • 521 B
text/typescript
import {expectError, expectType} from 'tsd';
import {AuthenticatedLnd} from '../../lnd_grpc';
import {
getPendingChainBalance,
GetPendingChainBalanceResult,
} from '../../lnd_methods';
const lnd = {} as AuthenticatedLnd;
expectError(getPendingChainBalance());
expectError(getPendingChainBalance({}));
expectType<GetPendingChainBalanceResult>(await getPendingChainBalance({lnd}));
expectType<void>(
getPendingChainBalance({lnd}, (error, result) => {
expectType<GetPendingChainBalanceResult>(result);
})
);