mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-19 06:14:47 -07:00
bindgen: js fix name of txid[] field name
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user