fix #17 by patching typeahead
typescript changes