Added transitionType function.
Pass both context + partial into transitionType()