lightning
Version:
Lightning Network client library
16 lines (11 loc) • 427 B
text/typescript
import {expectError, expectType} from 'tsd';
import {AuthenticatedLnd} from '../../lnd_grpc';
import {revokeAccess} from '../../lnd_methods';
const lnd = {} as AuthenticatedLnd;
const id = '1';
expectError(revokeAccess());
expectError(revokeAccess({}));
expectError(revokeAccess({id}));
expectError(revokeAccess({lnd}));
expectType<void>(await revokeAccess({lnd, id}));
expectType<void>(revokeAccess({lnd, id}, () => {}));