typescripting socks.ts - end to end works