From: Arik Sosman Date: Thu, 14 Jan 2021 11:17:14 +0000 (-0800) Subject: add typescript tuple generics X-Git-Tag: v0.0.1~50 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=bfbfeced77a2cf3ab06b33fe149666d6db225645;p=ldk-java add typescript tuple generics --- diff --git a/lab/bindings/typescript/util.ts b/lab/bindings/typescript/util.ts new file mode 100644 index 00000000..4f3d1135 --- /dev/null +++ b/lab/bindings/typescript/util.ts @@ -0,0 +1,21 @@ +export class TwoTuple { + public a: A; + public b: B; + + constructor(a: A, b: B) { + this.a = a; + this.b = b; + } +} + +export class ThreeTuple { + public a: A; + public b: B; + public c: C; + + constructor(a: A, b: B, c: C) { + this.a = a; + this.b = b; + this.c = c; + } +}