revert typescript