X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDecodeError.mts;h=7d75216eb5109163ae7d5d9d7387700b4a282dbb;hb=6700d1496b231c4b27d91a66be0d5efdb741662c;hp=3e6c005f09a707e8ecd85d37bcbf67f6b2cbbc28;hpb=64bcaa6a2a2f05653c14b9cb8bb97ab2480eaaa5;p=ldk-java diff --git a/ts/structs/DecodeError.mts b/ts/structs/DecodeError.mts index 3e6c005f..7d75216e 100644 --- a/ts/structs/DecodeError.mts +++ b/ts/structs/DecodeError.mts @@ -281,6 +281,9 @@ import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' +/** + * An error in decoding a message or struct. + */ export class DecodeError extends CommonBase { /* @internal */ public constructor(_dummy: object, ptr: number) { @@ -292,6 +295,9 @@ export class DecodeError extends CommonBase { return ret; } + /** + * Creates a copy of the DecodeError + */ public clone(): DecodeError { const ret: number = bindings.DecodeError_clone(this.ptr); const ret_hu_conv: DecodeError = new DecodeError(null, ret);