File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/blockchain-link/src/workers/electrum Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { CustomError } from '@trezor/blockchain-link-types/src/constants/errors'
2
2
import { MESSAGES , RESPONSES } from '@trezor/blockchain-link-types/src/constants' ;
3
3
import type { Response } from '@trezor/blockchain-link-types' ;
4
4
import { Message } from '@trezor/blockchain-link-types/src/messages' ;
5
+ import { Without } from '@trezor/type-utils' ;
5
6
6
7
import { BaseWorker , CONTEXT , ContextType } from '../baseWorker' ;
7
8
import * as M from './methods' ;
@@ -13,9 +14,6 @@ import type { ElectrumClient } from './client/electrum';
13
14
type BlockListener = ReturnType < typeof L . blockListener > ;
14
15
type TxListener = ReturnType < typeof L . txListener > ;
15
16
16
- // reason:
17
- // https://stackoverflow.com/questions/57103834/typescript-omit-a-property-from-all-interfaces-in-a-union-but-keep-the-union-s#answer-57103940
18
- type Without < T , K extends keyof any > = T extends any ? Omit < T , K > : never ;
19
17
type Request < T > = T extends any
20
18
? T & ContextType < ElectrumClient > & { blockListener : BlockListener ; txListener : TxListener }
21
19
: never ;
You can’t perform that action at this time.
0 commit comments