Just Code: fixing TypeScript function overloads