Skip to content

Commit c235b12

Browse files
committed
[TS] Update auto-generated TS bindings
1 parent 5e9de82 commit c235b12

File tree

379 files changed

+12927
-5299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+12927
-5299
lines changed

ts/bindings.c

Lines changed: 2562 additions & 1438 deletions
Large diffs are not rendered by default.

ts/bindings.c.body

Lines changed: 2562 additions & 1438 deletions
Large diffs are not rendered by default.

ts/bindings.mts

Lines changed: 1365 additions & 363 deletions
Large diffs are not rendered by default.

ts/enums/ChannelMonitorUpdateErr.mts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ChannelMonitorUpdateStatus } from "../bindings.mjs";

ts/enums/IOError.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { IOError } from "../bindings.mjs";

ts/index.mts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export * from './structs/TxOut.mjs';
1212
export * from './structs/BigEndianScalar.mjs';
1313
export * from './enums/AccessError.mjs';
1414
export * from './enums/COption_NoneZ.mjs';
15-
export * from './enums/ChannelMonitorUpdateErr.mjs';
15+
export * from './enums/ChannelMonitorUpdateStatus.mjs';
1616
export * from './enums/ConfirmationTarget.mjs';
1717
export * from './enums/CreationError.mjs';
1818
export * from './enums/Currency.mjs';
@@ -119,7 +119,6 @@ export * from './structs/GossipTimestampFilter.mjs';
119119
export * from './structs/MessageSendEvent.mjs';
120120
export * from './structs/Result_TxOutAccessErrorZ.mjs';
121121
export * from './structs/TwoTuple_usizeTransactionZ.mjs';
122-
export * from './structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
123122
export * from './structs/HTLCUpdate.mjs';
124123
export * from './structs/MonitorEvent.mjs';
125124
export * from './structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
@@ -175,6 +174,7 @@ export * from './structs/Result_SignatureNoneZ.mjs';
175174
export * from './structs/TwoTuple_SignatureSignatureZ.mjs';
176175
export * from './structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
177176
export * from './structs/Result_SecretKeyNoneZ.mjs';
177+
export * from './structs/Result_PublicKeyNoneZ.mjs';
178178
export * from './structs/Option_ScalarZ.mjs';
179179
export * from './structs/Result_SharedSecretNoneZ.mjs';
180180
export * from './structs/ClosingTransaction.mjs';
@@ -262,6 +262,9 @@ export * from './structs/Balance.mjs';
262262
export * from './structs/TwoTuple_BlockHashChannelMonitorZ.mjs';
263263
export * from './structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs';
264264
export * from './structs/TwoTuple_PublicKeyTypeZ.mjs';
265+
export * from './structs/CustomOnionMessageContents.mjs';
266+
export * from './structs/Option_CustomOnionMessageContentsZ.mjs';
267+
export * from './structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
265268
export * from './structs/Option_NetAddressZ.mjs';
266269
export * from './structs/PeerHandleError.mjs';
267270
export * from './structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
@@ -362,6 +365,7 @@ export * from './structs/OnionMessageHandler.mjs';
362365
export * from './structs/CustomMessageReader.mjs';
363366
export * from './structs/CustomMessageHandler.mjs';
364367
export * from './structs/IgnoringMessageHandler.mjs';
368+
export * from './structs/CustomOnionMessageHandler.mjs';
365369
export * from './structs/ErroringMessageHandler.mjs';
366370
export * from './structs/MessageHandler.mjs';
367371
export * from './structs/SocketDescriptor.mjs';

ts/structs/APIError.mts

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TxOut } from '../structs/TxOut.mjs';
22
import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
33
import { AccessError } from '../enums/AccessError.mjs';
44
import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
5-
import { ChannelMonitorUpdateErr } from '../enums/ChannelMonitorUpdateErr.mjs';
5+
import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
66
import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
77
import { CreationError } from '../enums/CreationError.mjs';
88
import { Currency } from '../enums/Currency.mjs';
@@ -109,7 +109,6 @@ import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
109109
import { MessageSendEvent } from '../structs/MessageSendEvent.mjs';
110110
import { Result_TxOutAccessErrorZ } from '../structs/Result_TxOutAccessErrorZ.mjs';
111111
import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
112-
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
113112
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
114113
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
115114
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
@@ -165,6 +164,7 @@ import { Result_SignatureNoneZ } from '../structs/Result_SignatureNoneZ.mjs';
165164
import { TwoTuple_SignatureSignatureZ } from '../structs/TwoTuple_SignatureSignatureZ.mjs';
166165
import { Result_C2Tuple_SignatureSignatureZNoneZ } from '../structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
167166
import { Result_SecretKeyNoneZ } from '../structs/Result_SecretKeyNoneZ.mjs';
167+
import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
168168
import { Option_ScalarZ } from '../structs/Option_ScalarZ.mjs';
169169
import { Result_SharedSecretNoneZ } from '../structs/Result_SharedSecretNoneZ.mjs';
170170
import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
@@ -251,6 +251,9 @@ import { Balance } from '../structs/Balance.mjs';
251251
import { TwoTuple_BlockHashChannelMonitorZ } from '../structs/TwoTuple_BlockHashChannelMonitorZ.mjs';
252252
import { Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs';
253253
import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
254+
import { CustomOnionMessageContents, CustomOnionMessageContentsInterface } from '../structs/CustomOnionMessageContents.mjs';
255+
import { Option_CustomOnionMessageContentsZ } from '../structs/Option_CustomOnionMessageContentsZ.mjs';
256+
import { Result_COption_CustomOnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
254257
import { Option_NetAddressZ } from '../structs/Option_NetAddressZ.mjs';
255258
import { PeerHandleError } from '../structs/PeerHandleError.mjs';
256259
import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
@@ -351,6 +354,7 @@ import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/On
351354
import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
352355
import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
353356
import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
357+
import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
354358
import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
355359
import { MessageHandler } from '../structs/MessageHandler.mjs';
356360
import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
@@ -385,7 +389,7 @@ import * as bindings from '../bindings.mjs'
385389
* too-high values)
386390
*/
387391
export class APIError extends CommonBase {
388-
protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.APIError_free); }
392+
protected constructor(_dummy: null, ptr: bigint) { super(ptr, bindings.APIError_free); }
389393
/* @internal */
390394
public static constr_from_ptr(ptr: bigint): APIError {
391395
const raw_ty: number = bindings.LDKAPIError_ty_from_ptr(ptr);
@@ -394,7 +398,7 @@ export class APIError extends CommonBase {
394398
case 1: return new APIError_FeeRateTooHigh(ptr);
395399
case 2: return new APIError_RouteError(ptr);
396400
case 3: return new APIError_ChannelUnavailable(ptr);
397-
case 4: return new APIError_MonitorUpdateFailed(ptr);
401+
case 4: return new APIError_MonitorUpdateInProgress(ptr);
398402
case 5: return new APIError_IncompatibleShutdownScript(ptr);
399403
default:
400404
throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface
@@ -457,10 +461,10 @@ export class APIError extends CommonBase {
457461
}
458462

459463
/**
460-
* Utility method to constructs a new MonitorUpdateFailed-variant APIError
464+
* Utility method to constructs a new MonitorUpdateInProgress-variant APIError
461465
*/
462-
public static constructor_monitor_update_failed(): APIError {
463-
const ret: bigint = bindings.APIError_monitor_update_failed();
466+
public static constructor_monitor_update_in_progress(): APIError {
467+
const ret: bigint = bindings.APIError_monitor_update_in_progress();
464468
const ret_hu_conv: APIError = APIError.constr_from_ptr(ret);
465469
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
466470
return ret_hu_conv;
@@ -477,6 +481,15 @@ export class APIError extends CommonBase {
477481
return ret_hu_conv;
478482
}
479483

484+
/**
485+
* Checks if two APIErrors contain equal inner contents.
486+
* This ignores pointers and is_owned flags and looks at the values in fields.
487+
*/
488+
public eq(b: APIError): boolean {
489+
const ret: boolean = bindings.APIError_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
490+
return ret;
491+
}
492+
480493
}
481494
/** A APIError of type APIMisuseError */
482495
export class APIError_APIMisuseError extends APIError {
@@ -539,8 +552,8 @@ export class APIError_ChannelUnavailable extends APIError {
539552
this.err = err_conv;
540553
}
541554
}
542-
/** A APIError of type MonitorUpdateFailed */
543-
export class APIError_MonitorUpdateFailed extends APIError {
555+
/** A APIError of type MonitorUpdateInProgress */
556+
export class APIError_MonitorUpdateInProgress extends APIError {
544557
/* @internal */
545558
public constructor(ptr: bigint) {
546559
super(null, ptr);

ts/structs/AcceptChannel.mts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TxOut } from '../structs/TxOut.mjs';
22
import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
33
import { AccessError } from '../enums/AccessError.mjs';
44
import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
5-
import { ChannelMonitorUpdateErr } from '../enums/ChannelMonitorUpdateErr.mjs';
5+
import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
66
import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
77
import { CreationError } from '../enums/CreationError.mjs';
88
import { Currency } from '../enums/Currency.mjs';
@@ -108,7 +108,6 @@ import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
108108
import { MessageSendEvent } from '../structs/MessageSendEvent.mjs';
109109
import { Result_TxOutAccessErrorZ } from '../structs/Result_TxOutAccessErrorZ.mjs';
110110
import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
111-
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
112111
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
113112
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
114113
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
@@ -164,6 +163,7 @@ import { Result_SignatureNoneZ } from '../structs/Result_SignatureNoneZ.mjs';
164163
import { TwoTuple_SignatureSignatureZ } from '../structs/TwoTuple_SignatureSignatureZ.mjs';
165164
import { Result_C2Tuple_SignatureSignatureZNoneZ } from '../structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
166165
import { Result_SecretKeyNoneZ } from '../structs/Result_SecretKeyNoneZ.mjs';
166+
import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
167167
import { Option_ScalarZ } from '../structs/Option_ScalarZ.mjs';
168168
import { Result_SharedSecretNoneZ } from '../structs/Result_SharedSecretNoneZ.mjs';
169169
import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
@@ -251,6 +251,9 @@ import { Balance } from '../structs/Balance.mjs';
251251
import { TwoTuple_BlockHashChannelMonitorZ } from '../structs/TwoTuple_BlockHashChannelMonitorZ.mjs';
252252
import { Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs';
253253
import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
254+
import { CustomOnionMessageContents, CustomOnionMessageContentsInterface } from '../structs/CustomOnionMessageContents.mjs';
255+
import { Option_CustomOnionMessageContentsZ } from '../structs/Option_CustomOnionMessageContentsZ.mjs';
256+
import { Result_COption_CustomOnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
254257
import { Option_NetAddressZ } from '../structs/Option_NetAddressZ.mjs';
255258
import { PeerHandleError } from '../structs/PeerHandleError.mjs';
256259
import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
@@ -351,6 +354,7 @@ import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/On
351354
import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
352355
import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
353356
import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
357+
import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
354358
import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
355359
import { MessageHandler } from '../structs/MessageHandler.mjs';
356360
import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
@@ -386,7 +390,7 @@ import * as bindings from '../bindings.mjs'
386390
*/
387391
export class AcceptChannel extends CommonBase {
388392
/* @internal */
389-
public constructor(_dummy: object, ptr: bigint) {
393+
public constructor(_dummy: null, ptr: bigint) {
390394
super(ptr, bindings.AcceptChannel_free);
391395
}
392396

@@ -632,7 +636,7 @@ export class AcceptChannel extends CommonBase {
632636
*
633637
* Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
634638
*/
635-
public set_channel_type(val: ChannelTypeFeatures): void {
639+
public set_channel_type(val: ChannelTypeFeatures|null): void {
636640
bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
637641
CommonBase.add_ref_from(this, val);
638642
}
@@ -652,6 +656,17 @@ export class AcceptChannel extends CommonBase {
652656
return ret_hu_conv;
653657
}
654658

659+
/**
660+
* Checks if two AcceptChannels contain equal inner contents.
661+
* This ignores pointers and is_owned flags and looks at the values in fields.
662+
* Two objects with NULL inner values will be considered "equal" here.
663+
*/
664+
public eq(b: AcceptChannel): boolean {
665+
const ret: boolean = bindings.AcceptChannel_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
666+
CommonBase.add_ref_from(this, b);
667+
return ret;
668+
}
669+
655670
/**
656671
* Serialize the AcceptChannel object into a byte array which can be read by AcceptChannel_read
657672
*/

ts/structs/Access.mts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TxOut } from '../structs/TxOut.mjs';
22
import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
33
import { AccessError } from '../enums/AccessError.mjs';
44
import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
5-
import { ChannelMonitorUpdateErr } from '../enums/ChannelMonitorUpdateErr.mjs';
5+
import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
66
import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
77
import { CreationError } from '../enums/CreationError.mjs';
88
import { Currency } from '../enums/Currency.mjs';
@@ -109,7 +109,6 @@ import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
109109
import { MessageSendEvent } from '../structs/MessageSendEvent.mjs';
110110
import { Result_TxOutAccessErrorZ } from '../structs/Result_TxOutAccessErrorZ.mjs';
111111
import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
112-
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
113112
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
114113
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
115114
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
@@ -164,6 +163,7 @@ import { Result_SignatureNoneZ } from '../structs/Result_SignatureNoneZ.mjs';
164163
import { TwoTuple_SignatureSignatureZ } from '../structs/TwoTuple_SignatureSignatureZ.mjs';
165164
import { Result_C2Tuple_SignatureSignatureZNoneZ } from '../structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
166165
import { Result_SecretKeyNoneZ } from '../structs/Result_SecretKeyNoneZ.mjs';
166+
import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
167167
import { Option_ScalarZ } from '../structs/Option_ScalarZ.mjs';
168168
import { Result_SharedSecretNoneZ } from '../structs/Result_SharedSecretNoneZ.mjs';
169169
import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
@@ -251,6 +251,9 @@ import { Balance } from '../structs/Balance.mjs';
251251
import { TwoTuple_BlockHashChannelMonitorZ } from '../structs/TwoTuple_BlockHashChannelMonitorZ.mjs';
252252
import { Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs';
253253
import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
254+
import { CustomOnionMessageContents, CustomOnionMessageContentsInterface } from '../structs/CustomOnionMessageContents.mjs';
255+
import { Option_CustomOnionMessageContentsZ } from '../structs/Option_CustomOnionMessageContentsZ.mjs';
256+
import { Result_COption_CustomOnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
254257
import { Option_NetAddressZ } from '../structs/Option_NetAddressZ.mjs';
255258
import { PeerHandleError } from '../structs/PeerHandleError.mjs';
256259
import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
@@ -351,6 +354,7 @@ import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/On
351354
import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
352355
import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
353356
import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
357+
import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
354358
import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
355359
import { MessageHandler } from '../structs/MessageHandler.mjs';
356360
import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
@@ -395,7 +399,7 @@ export interface AccessInterface {
395399
}
396400

397401
class LDKAccessHolder {
398-
held: Access;
402+
held: Access|null = null;
399403
}
400404

401405
/**
@@ -404,13 +408,13 @@ class LDKAccessHolder {
404408
*/
405409
export class Access extends CommonBase {
406410
/* @internal */
407-
public bindings_instance?: bindings.LDKAccess;
411+
public bindings_instance: bindings.LDKAccess|null;
408412

409413
/* @internal */
410414
public instance_idx?: number;
411415

412416
/* @internal */
413-
constructor(_dummy: object, ptr: bigint) {
417+
constructor(_dummy: null, ptr: bigint) {
414418
super(ptr, bindings.Access_free);
415419
this.bindings_instance = null;
416420
}
@@ -431,7 +435,7 @@ export class Access extends CommonBase {
431435
impl_holder.held = new Access(null, ptr_idx[0]);
432436
impl_holder.held.instance_idx = ptr_idx[1];
433437
impl_holder.held.bindings_instance = structImplementation;
434-
return impl_holder.held;
438+
return impl_holder.held!;
435439
}
436440

437441
/**

0 commit comments

Comments
 (0)