@types/ledgerhq__hw-transport-node-hid
TypeScript icon, indicating that this package has built-in type declarations

4.22.5 • Public • Published

Installation

npm install --save @types/ledgerhq__hw-transport-node-hid

Summary

This package contains type definitions for @ledgerhq/hw-transport-node-hid (https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport-node-hid).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ledgerhq__hw-transport-node-hid.

index.d.ts

/// <reference types = "node"/>
import HID = require("node-hid");
import Transport from "@ledgerhq/hw-transport";

declare class TransportNodeHid extends Transport {
    constructor(
        device: HID.HID,
        ledgerTransport?: boolean,
        timeout?: number,
    );
    static open(path: string): Promise<TransportNodeHid>;
    setScrambleKey(): void;

    device: HID.HID;
    ledgerTransport: boolean;
    timeout: number;
    exchangeStack: any[];
}

export default TransportNodeHid;

Additional Details

Credits

These definitions were written by Daniel Byrne.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ledgerhq__hw-transport-node-hid

Weekly Downloads

533

Version

4.22.5

License

MIT

Unpacked Size

4.06 kB

Total Files

5

Last publish

Collaborators

  • types