mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Modify Bootstrap.d.ts
I change properties to more strictly typed. and add some missing properties.
This commit is contained in:
Vendored
+17
-10
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Bootstrap 2.2
|
||||
// Type definitions for Bootstrap 3.3.5
|
||||
// Project: http://twitter.github.com/bootstrap/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -27,24 +27,28 @@ interface ScrollSpyOptions {
|
||||
interface TooltipOptions {
|
||||
animation?: boolean;
|
||||
html?: boolean;
|
||||
placement?: any;
|
||||
placement?: string | Function;
|
||||
selector?: string;
|
||||
title?: any;
|
||||
title?: string | Function;
|
||||
trigger?: string;
|
||||
delay?: any;
|
||||
container?: any;
|
||||
template?: string;
|
||||
delay?: number | Object;
|
||||
container?: string | boolean;
|
||||
viewport?: string | Function | Object;
|
||||
}
|
||||
|
||||
interface PopoverOptions {
|
||||
animation?: boolean;
|
||||
html?: boolean;
|
||||
placement?: any;
|
||||
placement?: string | Function;
|
||||
selector?: string;
|
||||
trigger?: string;
|
||||
title?: any;
|
||||
title?: string | Function;
|
||||
template?: string;
|
||||
content?: any;
|
||||
delay?: any;
|
||||
container?: any;
|
||||
delay?: number | Object;
|
||||
container?: string | boolean;
|
||||
viewport?: string | Function | Object;
|
||||
}
|
||||
|
||||
interface CollapseOptions {
|
||||
@@ -55,6 +59,8 @@ interface CollapseOptions {
|
||||
interface CarouselOptions {
|
||||
interval?: number;
|
||||
pause?: string;
|
||||
wrap: boolean;
|
||||
keybord: boolean;
|
||||
}
|
||||
|
||||
interface TypeaheadOptions {
|
||||
@@ -68,7 +74,8 @@ interface TypeaheadOptions {
|
||||
}
|
||||
|
||||
interface AffixOptions {
|
||||
offset?: any;
|
||||
offset?: number | Function | Object;
|
||||
target?: any;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
|
||||
Reference in New Issue
Block a user