lightning
Version:
Lightning Network client library
12 lines (8 loc) • 377 B
text/typescript
import * as events from 'events';
import {expectError, expectType} from 'tsd';
import {UnauthenticatedLnd} from '../../lnd_grpc';
import {subscribeToWalletStatus} from '../../lnd_methods';
const lnd = {} as UnauthenticatedLnd;
expectError(subscribeToWalletStatus());
expectError(subscribeToWalletStatus({}));
expectType<events.EventEmitter>(subscribeToWalletStatus({lnd}));