From 5cbc5b7cf839024c709743c90341c338b007fbec Mon Sep 17 00:00:00 2001 From: Otto Allmendinger Date: Thu, 12 Feb 2026 14:47:22 +0100 Subject: [PATCH] feat(wasm-utxo): fix coinName function exports Export coinName helper functions correctly as values rather than types. This ensures they can be called in client code. The `export type { ... }` syntax is a bit of a footgun. Issue: BTC-2650 Co-authored-by: llm-git --- packages/wasm-utxo/js/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wasm-utxo/js/index.ts b/packages/wasm-utxo/js/index.ts index 333d72a..8b30e91 100644 --- a/packages/wasm-utxo/js/index.ts +++ b/packages/wasm-utxo/js/index.ts @@ -21,7 +21,7 @@ export { ECPair } from "./ecpair.js"; export { BIP32 } from "./bip32.js"; export { Dimensions } from "./fixedScriptWallet/Dimensions.js"; -export type { CoinName, getMainnet, isMainnet, isTestnet, isCoinName } from "./coinName.js"; +export { type CoinName, getMainnet, isMainnet, isTestnet, isCoinName } from "./coinName.js"; export type { Triple } from "./triple.js"; export type { AddressFormat } from "./address.js"; export type { TapLeafScript, PreparedInscriptionRevealData } from "./inscriptions.js";