How can I incorporate the TypeAhead library into a TypeScript module using a script similar to the one provided below?
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/typeahead/typeahead.d.ts" />
$ReferrerSearchInput.typeahead({
hint: false,
highlight: false,
minLength: 3
},
{
name: "Referrers",
display: "DisplayValue",
source: referrersDatasource,
limit: 20,
templates: {
suggestion: function(data) {
return data.FullName;
}
}
});