From 16cfba413649cdf1ce9bbea2223b8120e25c6b23 Mon Sep 17 00:00:00 2001 From: Yuichi Nukiyama Date: Mon, 24 Aug 2015 06:55:28 +0000 Subject: [PATCH] Modify Bootstrap.d.ts I change properties to more strictly typed. and add some missing properties. --- bootstrap/bootstrap.d.ts | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/bootstrap/bootstrap.d.ts b/bootstrap/bootstrap.d.ts index 47a992fba..71b38d0b0 100644 --- a/bootstrap/bootstrap.d.ts +++ b/bootstrap/bootstrap.d.ts @@ -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 // 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 {