refactor(typeahead): change freeMode API