lightning
Version:
Lightning Network client library
12 lines (8 loc) • 390 B
text/typescript
import {expectError, expectType} from 'tsd';
import {deleteFailedPayAttempts} from '../../lnd_methods';
import {AuthenticatedLnd} from '../../lnd_grpc';
const lnd = {} as AuthenticatedLnd;
expectError(deleteFailedPayAttempts());
expectError(deleteFailedPayAttempts({}));
expectType<void>(await deleteFailedPayAttempts({lnd}));
expectType<void>(deleteFailedPayAttempts({lnd}, () => {}));