Update typeahead.d.ts

Implement typeahead.js bloodhound suggestion engine: https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md
Take input from here: https://github.com/borisyankov/DefinitelyTyped/pull/2239 with some modifications.