UNPKG

@trezor/connect

Version:

High-level javascript interface for Trezor hardware wallet.

11 lines 720 B
import { BLOCKCHAIN_EVENT, BlockchainEvent } from '../../events/blockchain'; import { DEVICE_EVENT, DeviceEvent } from '../../events/device'; import { TRANSPORT_EVENT, TransportEvent } from '../../events/transport'; import { UI_EVENT, UiEvent } from '../../events/ui-request'; type EventType<Event> = Event extends { type: string; } ? Event['type'] : never; export type EventListenerType = typeof BLOCKCHAIN_EVENT | typeof DEVICE_EVENT | typeof TRANSPORT_EVENT | typeof UI_EVENT | EventType<TransportEvent> | EventType<UiEvent> | EventType<DeviceEvent> | EventType<BlockchainEvent>; export declare function off(type: EventListenerType, cb: (...args: any[]) => any): void; export {}; //# sourceMappingURL=off.d.ts.map