diff --git a/src/cjs/index.d.ts b/src/cjs/index.d.ts index f2badff81..45a16670c 100644 --- a/src/cjs/index.d.ts +++ b/src/cjs/index.d.ts @@ -7,7 +7,7 @@ export { address, crypto, networks, payments, script }; export { Block } from './block.js'; /** @hidden */ export { TaggedHashPrefix } from './crypto.js'; -export { Psbt, PsbtTxInput, PsbtTxOutput, Signer, SignerAsync, HDSigner, HDSignerAsync, toXOnly, } from './psbt.js'; +export { Psbt, PsbtTxInput, PsbtTxOutput, PsbtInputExtended, PsbtOutputExtended, Signer, SignerAsync, HDSigner, HDSignerAsync, toXOnly, } from './psbt.js'; /** @hidden */ export { OPS as opcodes } from './ops.js'; export { Transaction } from './transaction.js'; diff --git a/src/cjs/psbt.d.ts b/src/cjs/psbt.d.ts index 92d65335d..743e77a63 100644 --- a/src/cjs/psbt.d.ts +++ b/src/cjs/psbt.d.ts @@ -129,9 +129,9 @@ interface PsbtOptsOptional { network?: Network; maximumFeeRate?: number; } -interface PsbtInputExtended extends PsbtInput, TransactionInput { +export interface PsbtInputExtended extends PsbtInput, TransactionInput { } -type PsbtOutputExtended = PsbtOutputExtendedAddress | PsbtOutputExtendedScript; +export type PsbtOutputExtended = PsbtOutputExtendedAddress | PsbtOutputExtendedScript; interface PsbtOutputExtendedAddress extends PsbtOutput { address: string; value: bigint; diff --git a/ts_src/index.ts b/ts_src/index.ts index 2a4cb95da..67f935b5a 100644 --- a/ts_src/index.ts +++ b/ts_src/index.ts @@ -13,6 +13,8 @@ export { Psbt, PsbtTxInput, PsbtTxOutput, + PsbtInputExtended, + PsbtOutputExtended, Signer, SignerAsync, HDSigner, diff --git a/ts_src/psbt.ts b/ts_src/psbt.ts index 357a059cd..0ea0fde7d 100644 --- a/ts_src/psbt.ts +++ b/ts_src/psbt.ts @@ -1164,9 +1164,11 @@ interface PsbtOpts { maximumFeeRate: number; } -interface PsbtInputExtended extends PsbtInput, TransactionInput {} +export interface PsbtInputExtended extends PsbtInput, TransactionInput {} -type PsbtOutputExtended = PsbtOutputExtendedAddress | PsbtOutputExtendedScript; +export type PsbtOutputExtended = + | PsbtOutputExtendedAddress + | PsbtOutputExtendedScript; interface PsbtOutputExtendedAddress extends PsbtOutput { address: string;