const separator = "|"; export class TupleKey { public readonly tuple: T; private readonly strKey: string; constructor(...tuple: T) { this.tuple = tuple; this.strKey = tuple.join(separator); } toString(): string { return this.strKey; } valueOf(): string { return this.strKey; } }