Learning typescript