cleanup
update typescript definition