From 89b039b2b76871a16a02522f96ecdb24c8e227d0 Mon Sep 17 00:00:00 2001 From: Richard Hepburn Date: Fri, 5 Jul 2013 13:01:31 -0400 Subject: [PATCH 1/4] Changed bool -> boolean to align with TypeScript 0.9 Updated bool type declarations to boolean to align with the ES6 standard now supported in TS 0.9. --- bootstrap/bootstrap.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bootstrap/bootstrap.d.ts b/bootstrap/bootstrap.d.ts index c06c08f89..47ef378fd 100644 --- a/bootstrap/bootstrap.d.ts +++ b/bootstrap/bootstrap.d.ts @@ -7,16 +7,16 @@ /// interface ModalOptions { - backdrop?: bool; - keyboard?: bool; - show?: bool; + backdrop?: boolean; + keyboard?: boolean; + show?: boolean; remote?: string; } interface ModalOptionsBackdropString { backdrop?: string; // for "static" - keyboard?: bool; - show?: bool; + keyboard?: boolean; + show?: boolean; remote?: string; } @@ -25,8 +25,8 @@ interface ScrollSpyOptions { } interface TooltipOptions { - animation?: bool; - html?: bool; + animation?: boolean; + html?: boolean; placement?: any; selector?: string; title?: any; @@ -35,8 +35,8 @@ interface TooltipOptions { } interface PopoverOptions { - animation?: bool; - html?: bool; + animation?: boolean; + html?: boolean; placement?: any; selector?: string; trigger?: string; @@ -47,7 +47,7 @@ interface PopoverOptions { interface CollapseOptions { parent?: any; - toggle?: bool; + toggle?: boolean; } interface CarouselOptions { From e98875bf101f337a5e64187d573f701cc9ee122e Mon Sep 17 00:00:00 2001 From: Richard Hepburn Date: Fri, 5 Jul 2013 13:01:50 -0400 Subject: [PATCH 2/4] Changed bool -> boolean to align with TypeScript 0.9 Updated bool type declarations to boolean to align with the ES6 standard now supported in TS 0.9. --- i18next/i18next.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index a1b843640..f9ea5fb42 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -20,28 +20,28 @@ interface I18nextOptions { lng?: string; // Default value: undefined load?: string; // Default value: 'all' preload?: string[]; // Default value: [] - lowerCaseLng?: bool; // Default value: false - returnObjectTrees?: bool; // Default value: false + lowerCaseLng?: boolean; // Default value: false + returnObjectTrees?: boolean; // Default value: false fallbackLng?: string; // Default value: 'dev' detectLngQS?: string; // Default value: 'setLng' ns?: any; // Default value: 'translation' (string), can also be an object nsseparator?: string; // Default value: '::' keyseparator?: string; // Default value: '.' selectorAttr?: string; // Default value: 'data-i18n' - debug?: bool; // Default value: false + debug?: boolean; // Default value: false resGetPath?: string; // Default value: 'locales/__lng__/__ns__.json' resPostPath?: string; // Default value: 'locales/add/__lng__/__ns__' - getAsync?: bool; // Default value: true - postAsync?: bool; // Default value: true + getAsync?: boolean; // Default value: true + postAsync?: boolean; // Default value: true resStore?: IResourceStore; // Default value: undefined - useLocalStorage?: bool; // Default value: false + useLocalStorage?: boolean; // Default value: false localStorageExpirationTime?: number; // Default value: 7 * 24 * 60 * 60 * 1000 (in ms default one week) - dynamicLoad?: bool; // Default value: false - sendMissing?: bool; // Default value: false + dynamicLoad?: boolean; // Default value: false + sendMissing?: boolean; // Default value: false sendMissingTo?: string; // Default value: 'fallback'. Other options are: current | all sendType?: string; // Default value: 'POST' @@ -53,11 +53,11 @@ interface I18nextOptions { pluralNotFound?: string; // Default value: ['plural_not_found' Math.random()].join( '' ) contextNotFound?: string; // Default value: ['context_not_found' Math.random()].join( '' ) - setJqueryExt?: bool; // Default value: true - defaultValueFromContent?: bool; // Default value: true - useDataAttrOptions?: bool; // Default value: false + setJqueryExt?: boolean; // Default value: true + defaultValueFromContent?: boolean; // Default value: true + useDataAttrOptions?: boolean; // Default value: false cookieExpirationTime?: number; // Default value: undefined - useCookie?: bool; // Default value: true + useCookie?: boolean; // Default value: true cookieName?: string; // Default value: 'i18next' postProcess?: string; // Default value: undefined @@ -69,7 +69,7 @@ interface I18nextStatic { detectLanguage(): string; functions: { extend(target: any, ...objs: any[]): Object; - extend(deep: bool, target: any, ...objs: any[]): Object; + extend(deep: boolean, target: any, ...objs: any[]): Object; each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any; ajax(settings: JQueryAjaxSettings): JQueryXHR; ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR; From 8dd5bcc633e0706bdd04448c50abb1c5fcaadc41 Mon Sep 17 00:00:00 2001 From: Richard Hepburn Date: Fri, 5 Jul 2013 13:02:27 -0400 Subject: [PATCH 3/4] Changed bool -> boolean to align with TypeScript 0.9 Updated bool type declarations to boolean to align with the ES6 standard now supported in TS 0.9. --- numeraljs/numeraljs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numeraljs/numeraljs.d.ts b/numeraljs/numeraljs.d.ts index 25e540677..e680806d1 100644 --- a/numeraljs/numeraljs.d.ts +++ b/numeraljs/numeraljs.d.ts @@ -23,7 +23,7 @@ interface NumeralJSLanguage { interface Numeral { (value?: any): Numeral; version: string; - isNumeral: bool; + isNumeral: boolean; language(key: string, values?: NumeralJSLanguage): Numeral; zeroFormat(format: string): string; clone(): Numeral; From 47a6bcdfb0fcf5b9c89c774286aa25959189c0e9 Mon Sep 17 00:00:00 2001 From: Richard Hepburn Date: Fri, 5 Jul 2013 13:02:40 -0400 Subject: [PATCH 4/4] Changed bool -> boolean to align with TypeScript 0.9 Updated bool type declarations to boolean to align with the ES6 standard now supported in TS 0.9. --- toastr/toastr.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toastr/toastr.d.ts b/toastr/toastr.d.ts index e22e8cbfc..db36ee477 100644 --- a/toastr/toastr.d.ts +++ b/toastr/toastr.d.ts @@ -10,7 +10,7 @@ interface ToastrOptions { /** * Should clicking on toast dismiss it? */ - tapToDismiss?: bool; + tapToDismiss?: boolean; /** * CSS class the toast element will be given */ @@ -22,7 +22,7 @@ interface ToastrOptions { /** * Should debug details be outputted to the console */ - debug?: bool; + debug?: boolean; /** * Time in milliseconds the toast should take to fade in */ @@ -88,7 +88,7 @@ interface ToastrOptions { /** * Set newest toast to appear on top **/ - newestOnTop?: bool; + newestOnTop?: boolean; /** * Function to execute on toast click