bindgen: js fix name of txid[] field name

This commit is contained in:
nym21
2026-05-08 00:32:46 +02:00
parent 9d18e2db9b
commit 6e8be1af22
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ pub fn generate_type_definitions(output: &mut String, schemas: &TypeSchemas) {
.map(|arr| arr.iter().any(|v| v.as_str() == Some(prop_name))) .map(|arr| arr.iter().any(|v| v.as_str() == Some(prop_name)))
.unwrap_or(false); .unwrap_or(false);
let optional = if required { "" } else { "=" }; let optional = if required { "" } else { "=" };
let safe_name = to_camel_case(prop_name); let safe_name = to_camel_case(&prop_name.replace(['[', ']'], ""));
let prop_desc = prop_schema let prop_desc = prop_schema
.get("description") .get("description")
.and_then(|d| d.as_str()) .and_then(|d| d.as_str())

View File

@@ -1258,7 +1258,7 @@ on serialization otherwise.
* generated client SDKs see `txids: List[Txid]`. * generated client SDKs see `txids: List[Txid]`.
* *
* @typedef {Object} TxidsParam * @typedef {Object} TxidsParam
* @property {Txid[]} txId[] - Transaction IDs to look up (max 250 per request). * @property {Txid[]} txId - Transaction IDs to look up (max 250 per request).
*/ */
/** /**
* Index within its type (e.g., 0 for first P2WPKH address) * Index within its type (e.g., 0 for first P2WPKH address)