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
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/ledgerhq__hw-transport, @types/node, @types/node-hid
Credits
These definitions were written by Daniel Byrne.