regenerate typescript code