lightning
Version:
Lightning Network client library
12 lines (10 loc) • 451 B
text/typescript
import {expectType, expectError} from 'tsd';
import {unauthenticatedLndGrpc, UnauthenticatedLnd} from '../../lnd_grpc';
expectType<{lnd: UnauthenticatedLnd}>(unauthenticatedLndGrpc({}));
expectType<{lnd: UnauthenticatedLnd}>(unauthenticatedLndGrpc({cert: '00'}));
expectType<{lnd: UnauthenticatedLnd}>(
unauthenticatedLndGrpc({socket: 'socket'})
);
expectType<{lnd: UnauthenticatedLnd}>(
unauthenticatedLndGrpc({cert: '00', socket: 'socket'})
);