fix: add missing exports with Cardano prefix#39
Conversation
| ChainPoint as CardanoChainPoint, | ||
| Utxo as CardanoUtxo, | ||
| TipEvent as CardanoTipEvent, | ||
| TxEvent as CardanoTxEvent, | ||
| MempoolEvent as CardanoMempoolEvent, | ||
| TxHash as CardanoTxHash, | ||
| TxCbor as CardanoTxCbor, |
There was a problem hiding this comment.
I'm assuming you're fine with just re-exporting everything with a Cardano prefix
If you really don't like this, you could make that all the Cardano types are instead exported under @utxorpc/sdk/cardano using conditional exports, but given Cardano is the only chain supported at the moment it might not be worth spending time on this now
There was a problem hiding this comment.
I agree with this, we can revisit later once we have more chains avaialble.
|
I noticed after this PR was merged that the You can import the class version by doing import type { query } from "npm:@utxorpc/spec";
const point: query.ChainPoint // use it like thisI still need the ChainPoint exported like in this PR (i.e. we shouldn't revert this PR) because
|
The package is missing these type exports, which makes it hard to work with the library