Playing around with typescript