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