bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/web/static/js/bootstrap.d.ts (about) 1 // Type definitions for Bootstrap 2.2 2 // Project: http://twitter.github.com/bootstrap/ 3 // Definitions by: Boris Yankov <https://github.com/borisyankov/> 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 6 7 /// <reference path="jquery.d.ts"/> 8 9 interface ModalOptions { 10 backdrop?: boolean; 11 keyboard?: boolean; 12 show?: boolean; 13 remote?: string; 14 } 15 16 interface ModalOptionsBackdropString { 17 backdrop?: string; // for "static" 18 keyboard?: boolean; 19 show?: boolean; 20 remote?: string; 21 } 22 23 interface ScrollSpyOptions { 24 offset?: number; 25 } 26 27 interface TooltipOptions { 28 animation?: boolean; 29 html?: boolean; 30 placement?: any; 31 selector?: string; 32 title?: any; 33 trigger?: string; 34 delay?: any; 35 container?: any; 36 } 37 38 interface PopoverOptions { 39 animation?: boolean; 40 html?: boolean; 41 placement?: any; 42 selector?: string; 43 trigger?: string; 44 title?: any; 45 content?: any; 46 delay?: any; 47 container?: any; 48 } 49 50 interface CollapseOptions { 51 parent?: any; 52 toggle?: boolean; 53 } 54 55 interface CarouselOptions { 56 interval?: number; 57 pause?: string; 58 } 59 60 interface TypeaheadOptions { 61 source?: any; 62 items?: number; 63 minLength?: number; 64 matcher?: (item: any) => boolean; 65 sorter?: (items: any[]) => any[]; 66 updater?: (item: any) => any; 67 highlighter?: (item: any) => string; 68 } 69 70 interface AffixOptions { 71 offset?: any; 72 } 73 74 interface JQuery { 75 modal(options?: ModalOptions): JQuery; 76 modal(options?: ModalOptionsBackdropString): JQuery; 77 modal(command: string): JQuery; 78 79 dropdown(): JQuery; 80 dropdown(command: string): JQuery; 81 82 scrollspy(command: string): JQuery; 83 scrollspy(options?: ScrollSpyOptions): JQuery; 84 85 tab(): JQuery; 86 tab(command: string): JQuery; 87 88 tooltip(options?: TooltipOptions): JQuery; 89 tooltip(command: string): JQuery; 90 91 popover(options?: PopoverOptions): JQuery; 92 popover(command: string): JQuery; 93 94 alert(): JQuery; 95 alert(command: string): JQuery; 96 97 button(): JQuery; 98 button(command: string): JQuery; 99 100 collapse(options?: CollapseOptions): JQuery; 101 collapse(command: string): JQuery; 102 103 carousel(options?: CarouselOptions): JQuery; 104 carousel(command: string): JQuery; 105 106 typeahead(options?: TypeaheadOptions): JQuery; 107 108 affix(options?: AffixOptions): JQuery; 109 }