typescript to randori changes