X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FDecodeError.mts;h=7d75216eb5109163ae7d5d9d7387700b4a282dbb;hp=3e6c005f09a707e8ecd85d37bcbf67f6b2cbbc28;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 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);