From bfbfeced77a2cf3ab06b33fe149666d6db225645 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Thu, 14 Jan 2021 03:17:14 -0800 Subject: [PATCH] add typescript tuple generics --- lab/bindings/typescript/util.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lab/bindings/typescript/util.ts 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; + } +} -- 2.39.5