- if (raw_val instanceof bindings.LDKSpendableOutputDescriptor_DelayedPaymentOutput) {
- return new SpendableOutputDescriptor_DelayedPaymentOutput(ptr, raw_val);
- }
- if (raw_val instanceof bindings.LDKSpendableOutputDescriptor_StaticPaymentOutput) {
- return new SpendableOutputDescriptor_StaticPaymentOutput(ptr, raw_val);
- }
- throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface