diff --git a/bootstrap/bootstrap-tests.ts b/bootstrap/bootstrap-tests.ts index 80e638b26..71698101f 100644 --- a/bootstrap/bootstrap-tests.ts +++ b/bootstrap/bootstrap-tests.ts @@ -35,6 +35,11 @@ $('#myCollapsible').collapse({ toggle: false }); $('.carousel').carousel(); $('.carousel').carousel({ interval: 2000 }); -$('.typeahead').typeahead(); +$('.typeahead').typeahead({ + matcher: item => true, + sorter: (items: any[]) => items, + updater: item => item, + highlighter: item => "" +}); $('#navbar').affix(); \ No newline at end of file diff --git a/bootstrap/bootstrap.d.ts b/bootstrap/bootstrap.d.ts index 47ef378fd..c14bf61d4 100644 --- a/bootstrap/bootstrap.d.ts +++ b/bootstrap/bootstrap.d.ts @@ -32,6 +32,7 @@ interface TooltipOptions { title?: any; trigger?: string; delay?: any; + container?: any; } interface PopoverOptions { @@ -42,7 +43,8 @@ interface PopoverOptions { trigger?: string; title?: any; content?: any; - delay?: any; + delay?: any; + container?: any; } interface CollapseOptions { @@ -59,9 +61,10 @@ interface TypeaheadOptions { source?: any; items?: number; minLength?: number; - matcher?: () => any; - sorter?: () => any; - highlighter?: () => any; + matcher?: (item: any) => boolean; + sorter?: (items: any[]) => any[]; + updater?: (item: any) => any; + highlighter?: (item: any) => string; } interface AffixOptions {