Add a callback to typeTo()