From f677cca98db1ea7400fd8b30e5a475ae396a5ace Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Wed, 7 Aug 2013 18:02:05 +0300 Subject: [PATCH] Multiple bool => boolean fixes --- _infrastructure/tests/src/io.ts | 2 +- bootstrap-notify/bootstrap-notify.d.ts | 2 +- box2d/box2dweb.d.ts | 12 +- breeze/breeze-1.0.d.ts | 142 ++++++++++----------- casperjs/casperjs.d.ts | 4 +- easeljs/easeljs.d.ts | 12 +- firebase/firebase-tests.ts | 2 +- firebase/firebase.d.ts | 2 +- highcharts/highcharts.d.ts | 2 +- jquery.cycle/jquery.cycle.d.ts | 6 +- jquery.dynatree/jquery.dynatree.d.ts | 12 +- jquery.elang/jquery.elang.d.ts | 2 +- jquery.form/jquery.form.d.ts | 2 +- jquery.tagsmanager/jquery.tagsmanager.d.ts | 2 +- jqueryui/jqueryui.d.ts | 16 +-- jscrollpane/jscrollpane.d.ts | 6 +- kolite/kolite.d.ts | 2 +- less/less.d.ts | 4 +- marionette/marionette.d.ts | 32 ++--- msnodesql/msnodesql.d.ts | 2 +- noVNC/noVNC.d.ts | 2 +- node-azure/azure.d.ts | 12 +- platform/platform-tests.ts | 2 +- preloadjs/preloadjs.d.ts | 7 +- pubsubjs/pubsub.d.ts | 2 +- rx.js/rx.js.d.ts | 6 +- scroller/scroller.d.ts | 4 +- sugar/sugar.d.ts | 22 ++-- teechart/teechart.d.ts | 2 +- threejs/three.d.ts | 16 +-- tweenjs/tweenjs.d.ts | 3 +- underscore-ko/underscore-ko.d.ts | 8 +- underscore/underscore.d.ts | 2 +- webaudioapi/waa-20120802.d.ts | 6 +- zepto/zepto-tests.ts | 6 +- zepto/zepto.d.ts | 2 +- 36 files changed, 183 insertions(+), 185 deletions(-) diff --git a/_infrastructure/tests/src/io.ts b/_infrastructure/tests/src/io.ts index 9c53451366..9a3bdf8ad5 100644 --- a/_infrastructure/tests/src/io.ts +++ b/_infrastructure/tests/src/io.ts @@ -236,7 +236,7 @@ var IO = (function() { }, directoryExists: function(path) { - return fso.FolderExists(path); + return fso.FolderExists(path); }, createDirectory: function(path) { diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index 20b1a90091..2159aa21af 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -13,7 +13,7 @@ interface NotifyOptions { type?: string; /** Allow alert to be closable through a close icon. - @param {bool} closable + @param {boolean} closable */ closable?: boolean; /** diff --git a/box2d/box2dweb.d.ts b/box2d/box2dweb.d.ts index e0bebe10a9..68701a5956 100644 --- a/box2d/box2dweb.d.ts +++ b/box2d/box2dweb.d.ts @@ -1373,7 +1373,7 @@ declare module Box2D.Collision { * param proxy Proxy overlapping the supplied AABB. * @aabb Proxies are query for overlap on this AABB. **/ - public Query(callback: (proxy: b2DynamicTreeNode) => bool, aabb: b2AABB): void; + public Query(callback: (proxy: b2DynamicTreeNode) => boolean, aabb: b2AABB): void; /** * Ray-cast against the proxies in the tree. This relies on the callback to perform a exact ray-cast in the case were the proxy contains a shape. The callback also performs the any collision filtering. This has performance roughly equal to k log(n), where k is the number of collisions and n is the number of proxies in the tree. @@ -1438,7 +1438,7 @@ declare module Box2D.Collision { /** * @see IBroadPhase.Query **/ - public Query(callback: (proxy: b2DynamicTreeNode) => bool, aabb: b2AABB): void; + public Query(callback: (proxy: b2DynamicTreeNode) => boolean, aabb: b2AABB): void; /** * @see IBroadPhase.RayCast @@ -1911,7 +1911,7 @@ declare module Box2D.Collision { * param proxy Proxy overlapping the supplied AABB. * @param aabb Proxies are query for overlap on this AABB. **/ - Query(callback: (proxy: b2DynamicTreeNode) => bool, aabb: b2AABB): void; + Query(callback: (proxy: b2DynamicTreeNode) => boolean, aabb: b2AABB): void; /** * Ray-cast against the proxies in the tree. This relies on the callback to perform a exact ray-cast in the case were the proxy contains a shape. The callback also performs the any collision filtering. This has performance roughly equal to k log(n), where k is the number of collisions and n is the number of proxies in the tree. @@ -3658,7 +3658,7 @@ declare module Box2D.Dynamics { * @param callback A user implemented callback class. It should match signature function Callback(fixture:b2Fixture):Boolean. Return true to continue to the next fixture. * @param aabb The query bounding box. **/ - public QueryAABB(callback: (fixutre: b2Fixture) => bool, aabb: Box2D.Collision.b2AABB): void; + public QueryAABB(callback: (fixutre: b2Fixture) => boolean, aabb: Box2D.Collision.b2AABB): void; /** * Query the world for all fixtures that contain a point. @@ -3666,7 +3666,7 @@ declare module Box2D.Dynamics { * @param callback A user implemented callback class. It should match signature function Callback(fixture:b2Fixture):Boolean. Return true to continue to the next fixture. * @param p The query point. **/ - public QueryPoint(callback: (fixture: b2Fixture) => bool, p: Box2D.Common.Math.b2Vec2): void; + public QueryPoint(callback: (fixture: b2Fixture) => boolean, p: Box2D.Common.Math.b2Vec2): void; /** * Query the world for all fixtures that precisely overlap the provided transformed shape. @@ -3675,7 +3675,7 @@ declare module Box2D.Dynamics { * @param shape The query shape. * @param transform Optional transform, default = null. **/ - public QueryShape(callback: (fixture: b2Fixture) => bool, shape: Box2D.Collision.Shapes.b2Shape, transform?: Box2D.Common.Math.b2Transform): void; + public QueryShape(callback: (fixture: b2Fixture) => boolean, shape: Box2D.Collision.Shapes.b2Shape, transform?: Box2D.Common.Math.b2Transform): void; /** * Ray-cast the world for all fixtures in the path of the ray. Your callback Controls whether you get the closest point, any point, or n-points The ray-cast ignores shapes that contain the starting point. diff --git a/breeze/breeze-1.0.d.ts b/breeze/breeze-1.0.d.ts index 5669e85f17..44fa2cca62 100644 --- a/breeze/breeze-1.0.d.ts +++ b/breeze/breeze-1.0.d.ts @@ -13,7 +13,7 @@ declare module BreezeCore { } interface IEnum { - contains(object: any): bool; + contains(object: any): boolean; fromName(name: string): EnumSymbol; getNames(): string[]; getSymbols(): EnumSymbol[]; @@ -23,11 +23,11 @@ declare module BreezeCore { constructor (name: string, methodObj?: any); addSymbol(propertiesObj?: any): EnumSymbol; - contains(object: any): bool; + contains(object: any): boolean; fromName(name: string): EnumSymbol; getNames(): string[]; getSymbols(): EnumSymbol[]; - static isSymbol(object: any): bool; + static isSymbol(object: any): boolean; seal(): void; } @@ -42,14 +42,14 @@ declare module BreezeCore { constructor (name: string, publisher: any, defaultErrorCallback?: ErrorCallback); static enable(eventName: string, target: any): void; - static enable(eventName: string, target: any, isEnabled: bool): void; + static enable(eventName: string, target: any, isEnabled: boolean): void; static enable(eventName: string, target: any, isEnabled: Function): void; - static isEnabled(eventName: string, target: any): bool; - publish(data: any, publishAsync?: bool, errorCallback?: ErrorCallback): void; + static isEnabled(eventName: string, target: any): boolean; + publish(data: any, publishAsync?: boolean, errorCallback?: ErrorCallback): void; publishAsync(data: any, errorCallback?: ErrorCallback): void; subscribe(callback?: (data: any) => void ): number; - unsubscribe(unsubKey: number): bool; + unsubscribe(unsubKey: number): boolean; } } @@ -69,8 +69,8 @@ declare module Breeze { name: string; parentEntityType: EntityType; validators: Validator[]; - isDataProperty: bool; - isNavigationProperty: bool; + isDataProperty: boolean; + isNavigationProperty: boolean; } interface IStructuralType { @@ -115,13 +115,13 @@ declare module Breeze { concurrencyMode: string; dataType: DataTypeSymbol; defaultValue: any; - fixedLength: bool; - isComplexProperty: bool; - isDataProperty: bool; - isNavigationProperty: bool; - isNullable: bool; - isPartOfKey: bool; - isUnmapped: bool; + fixedLength: boolean; + isComplexProperty: boolean; + isDataProperty: boolean; + isNavigationProperty: boolean; + isNullable: boolean; + isPartOfKey: boolean; + isUnmapped: boolean; maxLength: number; name: string; @@ -137,10 +137,10 @@ declare module Breeze { concurrencyMode?: string; dataType?: DataTypeSymbol; defaultValue?: any; - fixedLength?: bool; - isNullable?: bool; - isPartOfKey?: bool; - isUnmapped?: bool; + fixedLength?: boolean; + isNullable?: boolean; + isPartOfKey?: boolean; + isUnmapped?: boolean; maxLength?: number; name?: string; nameOnServer?: string; @@ -149,20 +149,20 @@ declare module Breeze { class DataService { adapterName: string; - hasServerMetadata: bool; + hasServerMetadata: boolean; serviceName: string; constructor(config: DataServiceOptions); } interface DataServiceOptions { adapterName?: string; - hasServerMetadata?: bool; + hasServerMetadata?: boolean; serviceName?: string; } class DataTypeSymbol extends BreezeCore.EnumSymbol { defaultValue: any; - isNumeric: bool; + isNumeric: boolean; } interface DataType extends BreezeCore.IEnum { Binary: DataTypeSymbol; @@ -207,7 +207,7 @@ declare module Breeze { entity: Entity; entityManager: EntityManager; entityState: EntityStateSymbol; - isBeingSaved: bool; + isBeingSaved: boolean; originalValues: any; propertyChanged: PropertyChangedEvent; @@ -216,7 +216,7 @@ declare module Breeze { acceptChanges(): void; addValidationError(validationError: ValidationError): void; clearValidationErrors(): void; - getKey(forceRefresh?: bool): EntityKey; + getKey(forceRefresh?: boolean): EntityKey; getValidationErrors(): ValidationError[]; getValidationErrors(property: string): ValidationError[]; @@ -234,11 +234,11 @@ declare module Breeze { setDeleted(): void; setModified(): void; setUnchanged(): void; - validateEntity(): bool; + validateEntity(): boolean; - validateProperty(property: string, context?: any): bool; - validateProperty(property: DataProperty, context?: any): bool; - validateProperty(property: NavigationProperty, context?: any): bool; + validateProperty(property: string, context?: any): boolean; + validateProperty(property: DataProperty, context?: any): boolean; + validateProperty(property: NavigationProperty, context?: any): boolean; } class PropertyChangedEventArgs { @@ -266,8 +266,8 @@ declare module Breeze { constructor (entityType: EntityType, keyValue: any); constructor (entityType: EntityType, keyValues: any[]); - equals(entityKey: EntityKey): bool; - static equals(k1: EntityKey, k2: EntityKey): bool; + equals(entityKey: EntityKey): boolean; + static equals(k1: EntityKey, k2: EntityKey): boolean; } class EntityManager { @@ -289,7 +289,7 @@ declare module Breeze { attachEntity(entity: Entity, entityState?: EntityStateSymbol): Entity; clear(): void; createEmptyCopy(): EntityManager; - detachEntity(entity: Entity): bool; + detachEntity(entity: Entity): boolean; createEntity(entityTypeName: string, propertyInitializer: {}): Entity; executeQuery(query: string, callback?: ExecuteQuerySuccessCallback, errorCallback?: ExecuteQueryErrorCallback): Promise; @@ -297,8 +297,8 @@ declare module Breeze { executeQueryLocally(query: EntityQuery): Entity[]; exportEntities(entities?: Entity[]): string; - fetchEntityByKey(typeName: string, keyValue: any, checkLocalCacheFirst?: bool): Entity; - fetchEntityByKey(typeName: string, keyValues: any[], checkLocalCacheFirst?: bool): Entity; + fetchEntityByKey(typeName: string, keyValue: any, checkLocalCacheFirst?: boolean): Entity; + fetchEntityByKey(typeName: string, keyValues: any[], checkLocalCacheFirst?: boolean): Entity; fetchEntityByKey(entityKey: EntityKey): Entity; fetchMetadata(callback?: (schema: any) => void , errorCallback?: BreezeCore.ErrorCallback): Promise; generateTempKeyValue(entity: Entity): any; @@ -322,11 +322,11 @@ declare module Breeze { getEntityByKey(typeName: string, keyValues: any[]): Entity; getEntityByKey(entityKey: EntityKey): Entity; - hasChanges(): bool; - hasChanges(entityTypeName: string): bool; - hasChanges(entityTypeNames: string[]): bool; - hasChanges(entityType: EntityType): bool; - hasChanges(entityTypes: EntityType[]): bool; + hasChanges(): boolean; + hasChanges(entityTypeName: string): boolean; + hasChanges(entityTypeNames: string[]): boolean; + hasChanges(entityType: EntityType): boolean; + hasChanges(entityTypes: EntityType[]): boolean; static importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; }): EntityManager; importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; }): EntityManager; @@ -403,7 +403,7 @@ declare module Breeze { static fromEntities(entities: Entity[]): EntityQuery; static fromEntityKey(entityKey: EntityKey): EntityQuery; static fromEntityNavigation(entity: Entity, navigationProperty: NavigationProperty): EntityQuery; - inlineCount(enabled?: bool): EntityQuery; + inlineCount(enabled?: boolean): EntityQuery; orderBy(propertyPaths: string): EntityQuery; orderBy(propertyPaths: string[]): EntityQuery; orderByDesc(propertyPaths: string): EntityQuery; @@ -429,13 +429,13 @@ declare module Breeze { } class EntityStateSymbol extends BreezeCore.EnumSymbol { - isAdded(): bool; - isAddedModifiedOrDeleted(): bool; - isDeleted(): bool; - isDetached(): bool; - isModified(): bool; - isUnchanged(): bool; - isUnchangedOrModified(): bool; + isAdded(): boolean; + isAddedModifiedOrDeleted(): boolean; + isDeleted(): boolean; + isDetached(): boolean; + isModified(): boolean; + isUnchanged(): boolean; + isUnchangedOrModified(): boolean; } interface EntityState extends BreezeCore.IEnum { Added: EntityStateSymbol; @@ -472,7 +472,7 @@ declare module Breeze { getEntityCtor(): Function; getNavigationProperty(propertyName: string): NavigationProperty; getProperties(): IProperty[]; - getProperty(propertyPath: string, throwIfNotFound?: bool): IProperty; + getProperty(propertyPath: string, throwIfNotFound?: boolean): IProperty; getPropertyNames(): string[]; setProperties(config: EntityTypeProperties): void; toString(): string; @@ -517,7 +517,7 @@ declare module Breeze { static caseInsensitiveSQL: LocalQueryComparisonOptions; static defaultInstance: LocalQueryComparisonOptions; - constructor (config: { name?: string; isCaseSensitive?: bool; usesSql92CompliantStringComparison?: bool; }); + constructor (config: { name?: string; isCaseSensitive?: boolean; usesSql92CompliantStringComparison?: boolean; }); setAsDefault(): void; } @@ -540,12 +540,12 @@ declare module Breeze { fetchMetadata(dataService: string, callback?: (data) => void , errorCallback?: BreezeCore.ErrorCallback): Promise; fetchMetadata(dataService: DataService, callback?: (data) => void , errorCallback?: BreezeCore.ErrorCallback): Promise; getDataService(serviceName: string): DataService; - getEntityType(entityTypeName: string, okIfNotFound?: bool): IStructuralType; + getEntityType(entityTypeName: string, okIfNotFound?: boolean): IStructuralType; getEntityTypes(): IStructuralType[]; - hasMetadataFor(serviceName: string): bool; + hasMetadataFor(serviceName: string): boolean; static importMetadata(exportedString: string): MetadataStore; importMetadata(exportedString: string): MetadataStore; - isEmpty(): bool; + isEmpty(): boolean; registerEntityTypeCtor(entityTypeName: string, entityCtor: Function, initializationFn?: (entity: Entity) =>void ): void; trackUnmappedType(entityCtor: Function, interceptor?: Function); } @@ -581,9 +581,9 @@ declare module Breeze { entityType: EntityType; foreignKeyNames: string[]; inverse: NavigationProperty; - isDataProperty: bool; - isNavigationProperty: bool; - isScalar: bool; + isDataProperty: boolean; + isNavigationProperty: boolean; + isScalar: boolean; name: string; parentEntityType: EntityType; relatedDataProperties: DataProperty[]; @@ -596,7 +596,7 @@ declare module Breeze { name?: string; nameOnServer?: string; entityTypeName: string; - isScalar?: bool; + isScalar?: boolean; associationName?: string; foreignKeyNames?: string[]; foreignKeyNamesOnServer?: string[]; @@ -604,15 +604,15 @@ declare module Breeze { } class Predicate { - constructor (property: string, operator: string, value: any, valueIsLiteral?: bool); - constructor (property: string, operator: FilterQueryOpSymbol, value: any, valueIsLiteral?: bool); + constructor (property: string, operator: string, value: any, valueIsLiteral?: boolean); + constructor (property: string, operator: FilterQueryOpSymbol, value: any, valueIsLiteral?: boolean); and: PredicateMethod; static and: PredicateMethod; static create: PredicateMethod; - static isPredicate(o: any): bool; + static isPredicate(o: any): boolean; static not(predicate: Predicate): Predicate; not(): Predicate; @@ -628,8 +628,8 @@ declare module Breeze { interface PredicateMethod { (predicates: Predicate[]): Predicate; (...predicates: Predicate[]): Predicate; - (property: string, operator: string, value: any, valueIsLiteral?: bool): Predicate; - (property: string, operator: FilterQueryOpSymbol, value: any, valueIsLiteral?: bool): Predicate; + (property: string, operator: string, value: any, valueIsLiteral?: boolean): Predicate; + (property: string, operator: FilterQueryOpSymbol, value: any, valueIsLiteral?: boolean): Predicate; } class Promise { @@ -657,10 +657,10 @@ declare module Breeze { } class SaveOptions { - allowConcurrentSaves: bool; + allowConcurrentSaves: boolean; static defaultInstance: SaveOptions; - constructor (config?: { allowConcurrentSaves?: bool; }); + constructor (config?: { allowConcurrentSaves?: boolean; }); setAsDefault(): SaveOptions; } @@ -677,10 +677,10 @@ declare module Breeze { class ValidationOptions { static defaultInstance: ValidationOptions; - validateOnAttach: bool; - validateOnPropertyChange: bool; - validateOnQuery: bool; - validateOnSave: bool; + validateOnAttach: boolean; + validateOnPropertyChange: boolean; + validateOnQuery: boolean; + validateOnSave: boolean; constructor (config?: ValidationOptionsConfiguration); @@ -689,10 +689,10 @@ declare module Breeze { } interface ValidationOptionsConfiguration { - validateOnAttach?: bool; - validateOnSave?: bool; - validateOnQuery?: bool; - validateOnPropertyChange?: bool; + validateOnAttach?: boolean; + validateOnSave?: boolean; + validateOnQuery?: boolean; + validateOnPropertyChange?: boolean; } class Validator { diff --git a/casperjs/casperjs.d.ts b/casperjs/casperjs.d.ts index a62c75c898..4be7b40c41 100644 --- a/casperjs/casperjs.d.ts +++ b/casperjs/casperjs.d.ts @@ -180,7 +180,7 @@ interface Colorizer { } interface Tester { - assert(condition: bool, message?: string); + assert(condition: boolean, message?: string); assertDoesntExist(selector: string, message?: string); assertEquals(testValue: any, expected: any, message?: string); assertEval(fn: Function, message: string, arguments: any); @@ -216,7 +216,7 @@ interface Tester { getPasses(): Cases; info(message: string); pass(message: string); - renderResults(exit: bool, status: number, save: string); + renderResults(exit: boolean, status: number, save: string); } interface Cases { diff --git a/easeljs/easeljs.d.ts b/easeljs/easeljs.d.ts index 3b7ff0d830..f2be7ea5e1 100644 --- a/easeljs/easeljs.d.ts +++ b/easeljs/easeljs.d.ts @@ -181,8 +181,8 @@ declare module createjs { play: boolean; // methods - constructor(target: MovieClip, outLabel: string, overLabel: string, downLabel: string, play: bool, hitArea: DisplayObject, hitLabel: string); - constructor(target: BitmapAnimation, outLabel: string, overLabel: string, downLabel: string, play: bool, hitArea: DisplayObject, hitLabel: string); + constructor(target: MovieClip, outLabel: string, overLabel: string, downLabel: string, play: boolean, hitArea: DisplayObject, hitLabel: string); + constructor(target: BitmapAnimation, outLabel: string, overLabel: string, downLabel: string, play: boolean, hitArea: DisplayObject, hitLabel: string); setEnabled(value: boolean); toString(): string; } @@ -428,7 +428,7 @@ declare module createjs { type: string; // methods - constructor (type: string, stageX: number, stageY: number, target: DisplayObject, nativeEvent: NativeMouseEvent, pointerID: number, primary: bool, rawX: number, rawY: number); + constructor (type: string, stageX: number, stageY: number, target: DisplayObject, nativeEvent: NativeMouseEvent, pointerID: number, primary: boolean, rawX: number, rawY: number); clone(): MouseEvent; toString(): string; @@ -467,7 +467,7 @@ declare module createjs { timeline: Timeline; //HERE requires tweenJS // methods - constructor (mode: string, startPosition: number, loop: bool, labels: Object); + constructor (mode: string, startPosition: number, loop: boolean, labels: Object); clone(recursive?: boolean): MovieClip; gotoAndPlay(positionOrLabel: string): void; gotoAndPlay(positionOrLabel: number): void; @@ -582,7 +582,7 @@ declare module createjs { export class SpriteSheetUtils { - static addFlippedFrames(spriteSheet: SpriteSheet, horizontal?: bool, vertical?: bool, both?: boolean): void; + static addFlippedFrames(spriteSheet: SpriteSheet, horizontal?: boolean, vertical?: boolean, both?: boolean): void; static extractFrame(spriteSheet: SpriteSheet, frame: number): HTMLImageElement; static extractFrame(spriteSheet: SpriteSheet, animationName: string): HTMLImageElement; static flip(spriteSheet: HTMLImageElement, flipData: Object): void; @@ -688,7 +688,7 @@ declare module createjs { export class Touch { // methods static disable(stage: Stage): void; - static enable(stage: Stage, singleTouch?: bool, allowDefault?: boolean): boolean; + static enable(stage: Stage, singleTouch?: boolean, allowDefault?: boolean): boolean; static isSupported(): boolean; } diff --git a/firebase/firebase-tests.ts b/firebase/firebase-tests.ts index dfde8d5607..eb6be83734 100644 --- a/firebase/firebase-tests.ts +++ b/firebase/firebase-tests.ts @@ -51,7 +51,7 @@ wilmaRef.transaction(function(currentData) { console.log('User wilma already exists.'); return; // Abort the transaction. } -}, function(error: any, committed: bool, snapshot: IFirebaseDataSnapshot) { +}, function(error: any, committed: boolean, snapshot: IFirebaseDataSnapshot) { if (error) console.log('Transaction failed abnormally!', error); else if (!committed) diff --git a/firebase/firebase.d.ts b/firebase/firebase.d.ts index 59bf6699a8..8c34938e80 100644 --- a/firebase/firebase.d.ts +++ b/firebase/firebase.d.ts @@ -60,7 +60,7 @@ declare class Firebase implements IFirebaseQuery { setWithPriority(value: any, priority: number, onComplete?: (error: any) => void): void; setPriority(priority: string, onComplete?: (error: any) => void): void; setPriority(priority: number, onComplete?: (error: any) => void): void; - transaction(updateFunction: (currentData: any)=> any, onComplete?: (error: any, committed: bool, snapshot: IFirebaseDataSnapshot) => void, applyLocally?: boolean): void; + transaction(updateFunction: (currentData: any)=> any, onComplete?: (error: any, committed: boolean, snapshot: IFirebaseDataSnapshot) => void, applyLocally?: boolean): void; onDisconnect(): IFirebaseOnDisconnect; on(eventType: string, callback: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void, cancelCallback?: ()=> void, context?: Object): (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void; off(eventType?: string, callback?: (dataSnapshot: IFirebaseDataSnapshot, prevChildName?: string) => void, context?: Object): void; diff --git a/highcharts/highcharts.d.ts b/highcharts/highcharts.d.ts index 0c309c26b3..f1d1f51c95 100644 --- a/highcharts/highcharts.d.ts +++ b/highcharts/highcharts.d.ts @@ -926,7 +926,7 @@ interface HighchartsTooltipOptions { borderColor?: string; borderRadius?: number; borderWidth?: number; - crosshairs?: any; // boolean | [bool,bool] | CrosshairObject | [CrosshairObject,CrosshairObject] + crosshairs?: any; // boolean | [boolean,bool] | CrosshairObject | [CrosshairObject,CrosshairObject] enabled?: boolean; footerFormat?: string; formatter?: () => any; diff --git a/jquery.cycle/jquery.cycle.d.ts b/jquery.cycle/jquery.cycle.d.ts index 364fecf5dc..dfe8e1c5cc 100644 --- a/jquery.cycle/jquery.cycle.d.ts +++ b/jquery.cycle/jquery.cycle.d.ts @@ -40,7 +40,7 @@ interface CycleOptions { next?: any; // element, jQuery object, or jQuery selector string for the element to use as event trigger for next slide nowrap?: boolean; // true to prevent slideshow from wrapping onPagerEvent?: (zeroBasedSlideIndex: number, slideElement: Element) => void; // callback fn for pager events: function(zeroBasedSlideIndex, slideElement) - onPrevNextEvent?: (isNext: bool, zeroBasedSlideIndex: number, slideElement: Element) => void; // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement) + onPrevNextEvent?: (isNext: boolean, zeroBasedSlideIndex: number, slideElement: Element) => void; // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement) pager?: any; // element, jQuery object, or jQuery selector string for the element to use as pager container pagerAnchorBuilder?: (index: number, DOMelement: Element) => string; // callback fn for building anchor links: function(index, DOMelement) pagerEvent?: string; // name of event which drives the pager navigation @@ -80,8 +80,8 @@ interface Cycle { prev: (options?: CycleOptions) => void; transitions: { [key: string]: ($cont: JQuery, $slides: JQuery, options: CycleOptions) => void; }; // transition definitions - only fade is defined here, transition pack defines the rest - custom: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, afterCalback: Function, forwardFlag: bool, speedOverride?: number) => void; // the actual fn for effecting a transition - commonReset: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, w?: bool, h?: bool, rev?: boolean) => void; // reset common props before the next transition + custom: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, afterCalback: Function, forwardFlag: boolean, speedOverride?: number) => void; // the actual fn for effecting a transition + commonReset: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, w?: boolean, h?: boolean, rev?: boolean) => void; // reset common props before the next transition hopsFromLast: (options: CycleOptions, forwardFlag?: boolean) => number; // helper fn to calculate the number of slides between the current and the next createPagerAnchor: (index: number, DOMElement: Element, $pager: JQuery, els: any, options: CycleOptions) => string; updateActivePagerLink: (pager: any, currSlide: number, clsName: string) => void; // invoked after transition diff --git a/jquery.dynatree/jquery.dynatree.d.ts b/jquery.dynatree/jquery.dynatree.d.ts index df75955ea6..91425644d0 100644 --- a/jquery.dynatree/jquery.dynatree.d.ts +++ b/jquery.dynatree/jquery.dynatree.d.ts @@ -40,7 +40,7 @@ interface DynaTree { selectKey(key: string, flag: string): DynaTreeNode; serializeArray(stopOnParents: boolean): any[]; toDict(): any; - visit(fn: (node: DynaTreeNode) =>bool, includeRoot: boolean): void; + visit(fn: (node: DynaTreeNode) =>boolean, includeRoot: boolean): void; } @@ -79,18 +79,18 @@ interface DynaTreeNode { reload(force: boolean): void; remove(): void; removeChildren(): void; - render(useEffects: bool, includeInvisible: boolean): void; + render(useEffects: boolean, includeInvisible: boolean): void; resetLazy(): void; scheduleAction(mode: string, ms: number); select(flag: string): void; setLazyNodeStatus(status: number): void; setTitle(title: string): void; sortChildren(cmp?: (a: DynaTreeNode, b: DynaTreeNode) =>number, deep?: boolean); - toDict(recursive: bool, callback?: (node: any) =>any): any; + toDict(recursive: boolean, callback?: (node: any) =>any): any; toggleExpand(): void; toggleSelect(): void; - visit(fn: (node: DynaTreeNode) =>bool, includeSelf: boolean): void; - visitParents(fn: (node: DynaTreeNode) =>bool, includeSelf: boolean): void; + visit(fn: (node: DynaTreeNode) =>boolean, includeSelf: boolean): void; + visitParents(fn: (node: DynaTreeNode) =>boolean, includeSelf: boolean): void; } interface DynatreeOptions { @@ -140,7 +140,7 @@ interface DynatreeOptions { onQueryExpand?: (flag: string, dtnode: DynaTreeNode) =>void;// Callback(flag, dtnode) before a node is expanded/collpsed. // High level event handlers - onPostInit?: (isReloading: bool, isError: boolean) =>void;// Callback(isReloading, isError) when tree was (re)loaded. + onPostInit?: (isReloading: boolean, isError: boolean) =>void;// Callback(isReloading, isError) when tree was (re)loaded. onActivate?: (dtnode: DynaTreeNode) =>void; // Callback(dtnode) when a node is activated. onDeactivate?: (dtnode: DynaTreeNode) =>void; // Callback(dtnode) when a node is deactivated. onSelect?: (flag: string, dtnode: DynaTreeNode) =>void; // Callback(flag, dtnode) when a node is (de)selected. diff --git a/jquery.elang/jquery.elang.d.ts b/jquery.elang/jquery.elang.d.ts index 56071acee2..5712f2cbff 100644 --- a/jquery.elang/jquery.elang.d.ts +++ b/jquery.elang/jquery.elang.d.ts @@ -141,7 +141,7 @@ interface IELangBase { createContent(): void; createRadioGroup(node: JQuery, - isMethodAppend: bool, + isMethodAppend: boolean, buttonNumber: number, defaultButton: number, btnLabels: string[], diff --git a/jquery.form/jquery.form.d.ts b/jquery.form/jquery.form.d.ts index dcacb09f36..8d2e276a15 100644 --- a/jquery.form/jquery.form.d.ts +++ b/jquery.form/jquery.form.d.ts @@ -44,7 +44,7 @@ interface JQuery { clearForm(): JQuery; clearFields(): JQuery; ajaxFormUnbind: () => JQuery; - formToArray: (semantic?: bool, elements?: Element[]) => any[]; + formToArray: (semantic?: boolean, elements?: Element[]) => any[]; enable: (enable?: boolean) => JQuery; selected: (select?: boolean) => JQuery; } \ No newline at end of file diff --git a/jquery.tagsmanager/jquery.tagsmanager.d.ts b/jquery.tagsmanager/jquery.tagsmanager.d.ts index 9c55e32a5d..ce03f2dab5 100644 --- a/jquery.tagsmanager/jquery.tagsmanager.d.ts +++ b/jquery.tagsmanager/jquery.tagsmanager.d.ts @@ -50,7 +50,7 @@ interface ITagsManager { options?: ITagsManagerOptions, tagToManipulate?: string): void; setupTypeahead(): void; - onTypeaheadAjaxSuccess(data: any, isSetTypeaheadSource: bool, process?: Function): void; + onTypeaheadAjaxSuccess(data: any, isSetTypeaheadSource: boolean, process?: Function): void; ajaxPolling(query: string, process: Function): void; setTypeaheadSource(source: any): void; trimTag(tag: string): string; diff --git a/jqueryui/jqueryui.d.ts b/jqueryui/jqueryui.d.ts index 3302b6a65c..70efd62b4e 100644 --- a/jqueryui/jqueryui.d.ts +++ b/jqueryui/jqueryui.d.ts @@ -11,7 +11,7 @@ declare module JQueryUI { interface AccordionOptions { active?: any; // boolean or number - animate?: any; // bool, number, string or object + animate?: any; // boolean, number, string or object collapsible?: boolean; disabled?: boolean; event?: string; @@ -428,7 +428,7 @@ declare module JQueryUI { // Slider ////////////////////////////////////////////////// interface SliderOptions { - animate?: any; // bool, string or number + animate?: any; // boolean, string or number disabled?: boolean; max?: number; min?: number; @@ -559,8 +559,8 @@ declare module JQueryUI { disabled?: any; // boolean or [] event?: string; heightStyle?: string; - hide?: any; // bool, number, string or object - show?: any; // bool, number, string or object + hide?: any; // boolean, number, string or object + show?: any; // boolean, number, string or object } interface TabsUIParams { @@ -586,10 +586,10 @@ declare module JQueryUI { interface TooltipOptions { content?: any; // () or string disabled?: boolean; - hide?: any; // bool, number, string or object + hide?: any; // boolean, number, string or object items?: string; position?: any; // TODO - show?: any; // bool, number, string or object + show?: any; // boolean, number, string or object tooltipClass?: string; track?: boolean; } @@ -1033,8 +1033,8 @@ interface JQuery { toggleClass(className: string, duration?: number, easing?: string, complete?: Function): JQuery; toggleClass(className: string, duration?: string, easing?: string, complete?: Function): JQuery; - toggleClass(className: string, aswitch?: bool, duration?: number, easing?: string, complete?: Function): JQuery; - toggleClass(className: string, aswitch?: bool, duration?: string, easing?: string, complete?: Function): JQuery; + toggleClass(className: string, aswitch?: boolean, duration?: number, easing?: string, complete?: Function): JQuery; + toggleClass(className: string, aswitch?: boolean, duration?: string, easing?: string, complete?: Function): JQuery; effect(options: any): JQuery; effect(effect: string, options?: any, duration?: number, complete?: Function): JQuery; diff --git a/jscrollpane/jscrollpane.d.ts b/jscrollpane/jscrollpane.d.ts index d878d9656f..2bb348bb47 100644 --- a/jscrollpane/jscrollpane.d.ts +++ b/jscrollpane/jscrollpane.d.ts @@ -156,7 +156,7 @@ interface JScrollPaneApi { * @param animate Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead. */ - scrollToElement(ele: JQuery, stickToTop?: bool, animate?: boolean): void; + scrollToElement(ele: JQuery, stickToTop?: boolean, animate?: boolean): void; /** * Scrolls the specified element (a jQuery selector string) into view so that it can be seen within the viewport. * @param ele A jQuery selector of the object to scroll to @@ -165,7 +165,7 @@ interface JScrollPaneApi { * @param animate Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead. */ - scrollToElement(ele: string, stickToTop?: bool, animate?: boolean): void; + scrollToElement(ele: string, stickToTop?: boolean, animate?: boolean): void; /** * Scrolls the specified element (a DOM node) into view so that it can be seen within the viewport. * @param ele A DOM node to scroll to @@ -174,7 +174,7 @@ interface JScrollPaneApi { * @param animate Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead. */ - scrollToElement(ele: HTMLElement, stickToTop?: bool, animate?: boolean): void; + scrollToElement(ele: HTMLElement, stickToTop?: boolean, animate?: boolean): void; /** * Scrolls the pane so that the specified co-ordinates within the content are at the top left of the viewport. * @param destX Left position of the viewport to scroll to diff --git a/kolite/kolite.d.ts b/kolite/kolite.d.ts index 30d287bdcb..42efda4a94 100644 --- a/kolite/kolite.d.ts +++ b/kolite/kolite.d.ts @@ -42,7 +42,7 @@ interface JQuery { interface DirtyFlag { isDirty: KnockoutComputed; - new (objectToTrack: any, isInitiallyDirty?: bool, hashFunction?: () => any); + new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any); reset(): void; } diff --git a/less/less.d.ts b/less/less.d.ts index 066b9ce7b3..9c55e73d71 100644 --- a/less/less.d.ts +++ b/less/less.d.ts @@ -296,7 +296,7 @@ declare module "less" { } export class Quoted implements IInjectable, IComparable { - constructor(str: string, content: string, escaped: bool, i); + constructor(str: string, content: string, escaped: boolean, i); escaped: boolean; value: string; @@ -374,7 +374,7 @@ declare module "less" { } export class Import implements IInjectable { - constructor(path, imports, features: ICSSable, once: bool, index, rootpath); + constructor(path, imports, features: ICSSable, once: boolean, index, rootpath); once: boolean; index; diff --git a/marionette/marionette.d.ts b/marionette/marionette.d.ts index 94b2585f43..52a1bb6ef9 100644 --- a/marionette/marionette.d.ts +++ b/marionette/marionette.d.ts @@ -26,14 +26,14 @@ declare module Backbone { //mixins from Collection (copied from Backbone's Collection declaration) - all(iterator: (element: View, index: number) => bool, context?: any): boolean; - any(iterator: (element: View, index: number) => bool, context?: any): boolean; + all(iterator: (element: View, index: number) => boolean, context?: any): boolean; + any(iterator: (element: View, index: number) => boolean, context?: any): boolean; contains(value: any): boolean; - detect(iterator: (item: any) => bool, context?: any): any; + detect(iterator: (item: any) => boolean, context?: any): any; each(iterator: (element: View, index: number, list?: any) => void , context?: any); - every(iterator: (element: View, index: number) => bool, context?: any): boolean; - filter(iterator: (element: View, index: number) => bool, context?: any): View[]; - find(iterator: (element: View, index: number) => bool, context?: any): View; + every(iterator: (element: View, index: number) => boolean, context?: any): boolean; + filter(iterator: (element: View, index: number) => boolean, context?: any): View[]; + find(iterator: (element: View, index: number) => boolean, context?: any): View; first(): View; forEach(iterator: (element: View, index: number, list?: any) => void , context?: any); include(value: any): boolean; @@ -46,11 +46,11 @@ declare module Backbone { lastIndexOf(element: View, fromIndex?: number): number; map(iterator: (element: View, index: number, context?: any) => any[], context?: any): any[]; pluck(attribute: string): any[]; - reject(iterator: (element: View, index: number) => bool, context?: any): View[]; + reject(iterator: (element: View, index: number) => boolean, context?: any): View[]; rest(): View; rest(n: number): View[]; select(iterator: any, context?: any): any[]; - some(iterator: (element: View, index: number) => bool, context?: any): boolean; + some(iterator: (element: View, index: number) => boolean, context?: any): boolean; toArray(): any[]; without(...values: any[]): View[]; } @@ -145,14 +145,14 @@ declare module Marionette { //mixins from Collection (copied from Backbone's Collection declaration) - all(iterator: (element: Region, index: number) => bool, context?: any): boolean; - any(iterator: (element: Region, index: number) => bool, context?: any): boolean; + all(iterator: (element: Region, index: number) => boolean, context?: any): boolean; + any(iterator: (element: Region, index: number) => boolean, context?: any): boolean; contains(value: any): boolean; - detect(iterator: (item: any) => bool, context?: any): any; + detect(iterator: (item: any) => boolean, context?: any): any; each(iterator: (element: Region, index: number, list?: any) => void , context?: any); - every(iterator: (element: Region, index: number) => bool, context?: any): boolean; - filter(iterator: (element: Region, index: number) => bool, context?: any): Region[]; - find(iterator: (element: Region, index: number) => bool, context?: any): Region; + every(iterator: (element: Region, index: number) => boolean, context?: any): boolean; + filter(iterator: (element: Region, index: number) => boolean, context?: any): Region[]; + find(iterator: (element: Region, index: number) => boolean, context?: any): Region; first(): Region; forEach(iterator: (element: Region, index: number, list?: any) => void , context?: any); include(value: any): boolean; @@ -165,11 +165,11 @@ declare module Marionette { lastIndexOf(element: Region, fromIndex?: number): number; map(iterator: (element: Region, index: number, context?: any) => any[], context?: any): any[]; pluck(attribute: string): any[]; - reject(iterator: (element: Region, index: number) => bool, context?: any): Region[]; + reject(iterator: (element: Region, index: number) => boolean, context?: any): Region[]; rest(): Region; rest(n: number): Region[]; select(iterator: any, context?: any): any[]; - some(iterator: (element: Region, index: number) => bool, context?: any): boolean; + some(iterator: (element: Region, index: number) => boolean, context?: any): boolean; toArray(): any[]; without(...values: any[]): Region[]; } diff --git a/msnodesql/msnodesql.d.ts b/msnodesql/msnodesql.d.ts index abeaa8b1c9..a9d008c43c 100644 --- a/msnodesql/msnodesql.d.ts +++ b/msnodesql/msnodesql.d.ts @@ -52,7 +52,7 @@ declare module "msnodesql" { rollback(callback?: ErrorCallback); close(callback?: ErrorCallback); - close(immediately: bool, callback?: ErrorCallback); + close(immediately: boolean, callback?: ErrorCallback); } interface StreamEvents extends EventEmitter { } diff --git a/noVNC/noVNC.d.ts b/noVNC/noVNC.d.ts index 8421d96901..c81be8ab35 100644 --- a/noVNC/noVNC.d.ts +++ b/noVNC/noVNC.d.ts @@ -99,7 +99,7 @@ declare class RFB { sendCtrlAltDel(): void; sendKey(code: number, down: boolean): void; clipboardPasteFrom(text: string): void; - testMode(override_send: (arr: Array) => bool, data_mode: string): void; + testMode(override_send: (arr: Array) => boolean, data_mode: string): void; } interface Display { diff --git a/node-azure/azure.d.ts b/node-azure/azure.d.ts index fe8ff3d244..374eec439e 100644 --- a/node-azure/azure.d.ts +++ b/node-azure/azure.d.ts @@ -9,7 +9,7 @@ * TODO */ declare module "azure" { - import events = module("events"); + import events = require("events"); //#region Services export class TableService extends BatchServiceClient { @@ -190,7 +190,7 @@ declare module "azure" { export class BatchServiceClient extends StorageServiceClient { operations: any[]; - constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: bool, authenticationProvider); + constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: boolean, authenticationProvider); beginBatch(): void; isInBatch(): boolean; rollback(): void; @@ -290,11 +290,11 @@ declare module "azure" { } export interface CreateTableIfNotExistsCallback { - (error: Error, created: bool, response: WebResponse): void; + (error: Error, created: boolean, response: WebResponse): void; } export interface DeleteTableCallback { - (error: Error, successful: bool, response: WebResponse): void; + (error: Error, successful: boolean, response: WebResponse): void; } export interface QueryTablesCallback { @@ -330,7 +330,7 @@ declare module "azure" { } export interface DeleteEntityCallback { - (error: Error, successful: bool, response: WebResponse): void; + (error: Error, successful: boolean, response: WebResponse): void; } export interface UpdateEntityOptions extends TimeoutIntervalOptions { @@ -356,7 +356,7 @@ declare module "azure" { apiVersion: string; usePathStyleUri: string; - constructor(storageAccount: string, storageAccessKey: string, host: string, usePathStyleUri: bool, authenticationProvider); + constructor(storageAccount: string, storageAccessKey: string, host: string, usePathStyleUri: boolean, authenticationProvider); } //#endregion diff --git a/platform/platform-tests.ts b/platform/platform-tests.ts index a061a27acd..518e8a98dd 100644 --- a/platform/platform-tests.ts +++ b/platform/platform-tests.ts @@ -78,7 +78,7 @@ function runTests() { } } -function falsy(condition: () => bool, action: () => any) { +function falsy(condition: () => boolean, action: () => any) { if (condition() === false) action(); } diff --git a/preloadjs/preloadjs.d.ts b/preloadjs/preloadjs.d.ts index 8c38cb7e60..e5cf315bd1 100644 --- a/preloadjs/preloadjs.d.ts +++ b/preloadjs/preloadjs.d.ts @@ -31,8 +31,8 @@ declare module createjs { loadStart: (event: Object) => any; // EventDispatcher mixins - addEventListener(type: string, listener: (eventObj: Object) => boolean): Function; - addEventListener(type: string, listener: (eventObj: Object) => boolean): Object; + addEventListener(type: string, listener: (eventObj: Object) => boolean): any; + removeEventListener(type: string, listener: (eventObj: Function) => boolean): void; removeEventListener(type: string, listener: (eventObj: Object) => boolean): void; removeAllEventListeners(type: string): void; @@ -92,8 +92,7 @@ declare module createjs { export class TagLoader extends AbstractLoader { constructor (item: Object, srcAttr: string, useXHR: boolean); constructor (item: string, srcAttr: string, useXHR: boolean); - getResult(): HTMLImageElement; - getResult(): HTMLAudioElement; + getResult(): any; // HTMLImageElement or HTMLAudioElement } diff --git a/pubsubjs/pubsub.d.ts b/pubsubjs/pubsub.d.ts index 485f21c11d..68208cdbdb 100644 --- a/pubsubjs/pubsub.d.ts +++ b/pubsubjs/pubsub.d.ts @@ -9,7 +9,7 @@ declare module PubSubJS { interface Publish{ publish(message: any, data: any): boolean; - publish(message:any, data:any, sync:bool, immediateExceptions:Function): boolean; + publish(message:any, data:any, sync:boolean, immediateExceptions:Function): boolean; publishSync(message: any, data: any): boolean; } diff --git a/rx.js/rx.js.d.ts b/rx.js/rx.js.d.ts index 92d64c6c65..49ebff1e38 100644 --- a/rx.js/rx.js.d.ts +++ b/rx.js/rx.js.d.ts @@ -221,9 +221,9 @@ declare module Rx { dispose(): void; } export interface Enumerator { - (moveNext: () =>bool, getCurrent: () => T, dispose: () =>void ): IEnumerator; + (moveNext: () =>boolean, getCurrent: () => T, dispose: () =>void ): IEnumerator; - create(moveNext: () =>bool, getCurrent: () => T, dispose?: () =>void ): IEnumerator; + create(moveNext: () =>boolean, getCurrent: () => T, dispose?: () =>void ): IEnumerator; } // Enumerable @@ -384,7 +384,7 @@ declare module Rx { empty(scheduler?: IScheduler): IObservable; fromArray(array: T[], scheduler?: IScheduler): IObservable; fromArray(array: { length: number;[index: number]: T; }, scheduler?: IScheduler): IObservable; - generate(initialState: TState, condition: (state: TState) => bool, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult, scheduler?: IScheduler): IObservable; + generate(initialState: TState, condition: (state: TState) => boolean, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult, scheduler?: IScheduler): IObservable; never(): IObservable; range(start: number, count: number, scheduler?: IScheduler): IObservable; repeat(value: T, repeatCount?: number, scheduler?: IScheduler): IObservable; diff --git a/scroller/scroller.d.ts b/scroller/scroller.d.ts index ae6bb84fb3..842aa8ee0f 100644 --- a/scroller/scroller.d.ts +++ b/scroller/scroller.d.ts @@ -38,8 +38,8 @@ declare class Scroller { finishPullToRefresh(): void; getValues(): ScrollValuesWithZoom; getScrollMax(): ScrollValues; - zoomTo(level: number, animate?: bool, originLeft?: bool, originTop?: boolean): void; - zoomBy(factor: number, animate?: bool, originLeft?: bool, originTop?: boolean): void; + zoomTo(level: number, animate?: boolean, originLeft?: boolean, originTop?: boolean): void; + zoomBy(factor: number, animate?: boolean, originLeft?: boolean, originTop?: boolean): void; scrollTo(left?: number, top?: number, animate?: number, zoom?: number): void; scrollBy(left?: number, top?: number, animate?: number): void; diff --git a/sugar/sugar.d.ts b/sugar/sugar.d.ts index 30e3405e00..290151be6a 100644 --- a/sugar/sugar.d.ts +++ b/sugar/sugar.d.ts @@ -857,7 +857,7 @@ interface String { * 'just sittin on the dock of the bay'.truncate(20, true, 'middle') -> 'just sitt...of the bay' * 'just sittin on the dock of the bay'.truncate(20, true, 'left') -> '...the dock of the bay' **/ - truncate(length: number, split?: bool, from?: string, ellipsis?: string): string; + truncate(length: number, split?: boolean, from?: string, ellipsis?: string): string; /** * Converts hyphens and camel casing to underscores. @@ -1232,7 +1232,7 @@ interface Number { * (-5).pad(4) -> '-0005' * (82).pad(3, true) -> '+082' **/ - pad(place?: number, sign?: bool, base?: number): string; + pad(place?: number, sign?: boolean, base?: number): string; /** * Shortcut for %Math.round% that also allows a [precision]. @@ -2167,11 +2167,11 @@ interface Array { every(f: number, scope?: any): boolean; every(f: string, scope?: any): boolean; every(f: Object, scope?: any): boolean; - every(f: (el: T, i?: number, array?: T[]) => bool, scope?: any): boolean; + every(f: (el: T, i?: number, array?: T[]) => boolean, scope?: any): boolean; all(f: number, scope?: any): boolean; all(f: string, scope?: any): boolean; all(f: Object, scope?: any): boolean; - all(f: (el: T, i?: number, array?: T[]) => bool, scope?: any): boolean; + all(f: (el: T, i?: number, array?: T[]) => boolean, scope?: any): boolean; /*** * Removes any element in the array that matches [f1], [f2], etc. @@ -2212,7 +2212,7 @@ interface Array { filter(f: string, scope?: any): T[]; filter(f: RegExp, scope?: any): T[]; filter(f: Object, scope?: any): T[]; - filter(f: (el: T, i?: number, array?: T[]) => bool, scope?: any): T[]; + filter(f: (el: T, i?: number, array?: T[]) => boolean, scope?: any): T[]; /*** * Returns the first element that matches . @@ -2234,7 +2234,7 @@ interface Array { find(f: string, index?: number, loop?: boolean): T; find(f: RegExp, index?: number, loop?: boolean): T; find(f: Object, index?: number, loop?: boolean): T; - find(f: (el: T, i?: number, array?: T[]) => bool, index?: number, loop?: boolean): T; + find(f: (el: T, i?: number, array?: T[]) => boolean, index?: number, loop?: boolean): T; /*** * Returns all elements that match . @@ -2257,7 +2257,7 @@ interface Array { findAll(f: string, index?: number, loop?: boolean): T[]; findAll(f: RegExp, index?: number, loop?: boolean): T[]; findAll(f: Object, index?: number, loop?: boolean): T[]; - findAll(f: (el: T, i?: number, array?: T[]) => bool, index?: number, loop?: boolean): T[]; + findAll(f: (el: T, i?: number, array?: T[]) => boolean, index?: number, loop?: boolean): T[]; /*** * Returns the index of the first element that matches @@ -2285,7 +2285,7 @@ interface Array { findIndex(f: number, startIndex?: number, loop?: boolean): number; findIndex(f: any, startIndex?: number, loop?: boolean): number; findIndex(f: RegExp, startIndex?: number, loop?: boolean): number; - findIndex(f: (el: T, i?: number, array?: T[]) => bool, startIndex?: number, loop?: boolean): number; + findIndex(f: (el: T, i?: number, array?: T[]) => boolean, startIndex?: number, loop?: boolean): number; /*** * Returns the first element(s) in the array. @@ -2662,7 +2662,7 @@ interface Array { some(f: number, scope?: any): boolean; some(f: string, scope?: any): boolean; some(f: any, scope?: any): boolean; - some(f: (n: T) => bool, scope?: any): boolean; + some(f: (n: T) => boolean, scope?: any): boolean; /*** * Sorts the array by . @@ -3075,8 +3075,8 @@ interface Object { * Object.extended({a:1}).merge({b:2}) -> { a:1, b:2 } * ***/ - merge(target: Object, source: Object, deep?: bool, resolve?: boolean): Object; - merge(target: Object, source: Object, deep?: bool, resolve?: (key: string, targetVal: any, sourceVal: any) => any): Object; + merge(target: Object, source: Object, deep?: boolean, resolve?: boolean): Object; + merge(target: Object, source: Object, deep?: boolean, resolve?: (key: string, targetVal: any, sourceVal: any) => any): Object; /** * Builds a new object containing all values except those specified in find. diff --git a/teechart/teechart.d.ts b/teechart/teechart.d.ts index 2264580226..27fead7653 100644 --- a/teechart/teechart.d.ts +++ b/teechart/teechart.d.ts @@ -329,7 +329,7 @@ declare module Tee { items: IAxis[]; - add(horizontal: bool, otherSide: boolean): IAxis; + add(horizontal: boolean, otherSide: boolean): IAxis; //each(f: function): void; } diff --git a/threejs/three.d.ts b/threejs/three.d.ts index 44f88fd0c3..bac14bb4af 100644 --- a/threejs/three.d.ts +++ b/threejs/three.d.ts @@ -917,7 +917,7 @@ declare module THREE { distance():number; at(t:number, optionalTarget?: Vector3):Vector3; closestPointToPointParameter(point:Vector3, clampToLine?:boolean):number; - closestPointToPoint(point:Vector3, clampToLine?:bool, optionalTarget?:Vector3):Vector3; + closestPointToPoint(point:Vector3, clampToLine?:boolean, optionalTarget?:Vector3):Vector3; applyMatrix4(matrix:Matrix4):Line3; equals(line:Line3):boolean; clone():Line3; @@ -1885,7 +1885,7 @@ declare module THREE { * @param camera camera to use in the projection. * @param sort select whether to sort elements using the Painter's algorithm. */ - projectScene(scene: Scene, camera: Camera, sortObjects: bool, sortElements?: boolean): { + projectScene(scene: Scene, camera: Camera, sortObjects: boolean, sortElements?: boolean): { objects: Object3D[]; // Mesh, Line or other object sprites: Object3D[]; // Sprite or Particle lights: Light[]; @@ -4529,7 +4529,7 @@ declare module THREE { * Tells the renderer to clear its color, depth or stencil drawing buffer(s). * If no parameters are passed, no buffer will be cleared. */ - clear(color?: bool, depth?: bool, stencil?: boolean): void; + clear(color?: boolean, depth?: boolean, stencil?: boolean): void; /** * Initialises the postprocessing plugin, and adds it to the renderPluginsPost array. @@ -4637,7 +4637,7 @@ declare module THREE { setClearColor(color: Color, alpha: number): void; getClearColor(): Color; getClearAlpha(): number; - clear(color?: bool, depth?: bool, stencil?: boolean): void; + clear(color?: boolean, depth?: boolean, stencil?: boolean): void; addPostPlugin(plugin: RendererPlugin): void; addPrePlugin(plugin: RendererPlugin): void; deallocateObject(object: Object3D): void; @@ -5000,7 +5000,7 @@ declare module THREE { interpolationType: AnimationInterpolation; points: Vector3[]; target: Vector3; - play(loop?: bool, startTimeMS?: number): void; + play(loop?: boolean, startTimeMS?: number): void; pause(): void; stop(): void; update(deltaTimeMS: number): void; @@ -5038,7 +5038,7 @@ declare module THREE { isPlaying: boolean; isPaused: boolean; loop: boolean; - play(loop?: bool, startTimeMS?: number): void; + play(loop?: boolean, startTimeMS?: number): void; pause(): void; stop(): void; update(deltaTimeMS: number): void; @@ -5667,11 +5667,11 @@ declare module THREE { } export class TubeGeometry extends Geometry { - constructor(path: Path, segments?: number, radius?: number, radiusSegments?: number, closed?: bool, debug?: Object3D); + constructor(path: Path, segments?: number, radius?: number, radiusSegments?: number, closed?: boolean, debug?: Object3D); // https://github.com/mrdoob/three.js/blob/master/examples/webgl_geometry_extrude_shapes.html#L208 // Hmmm? - constructor(path: SplineCurve3, segments?: number, radius?: number, radiusSegments?: number, closed?: bool, debug?: boolean); + constructor(path: SplineCurve3, segments?: number, radius?: number, radiusSegments?: number, closed?: boolean, debug?: boolean); path: Path; segments: number; diff --git a/tweenjs/tweenjs.d.ts b/tweenjs/tweenjs.d.ts index 02332176f1..34b6bdaf77 100644 --- a/tweenjs/tweenjs.d.ts +++ b/tweenjs/tweenjs.d.ts @@ -138,8 +138,7 @@ declare module createjs { change: (event) => any; // EventDispatcher mixins - addEventListener(type: string, listener: (eventObj: Object) => boolean): Function; - addEventListener(type: string, listener: (eventObj: Object) => boolean): Object; + addEventListener(type: string, listener: (eventObj: Object) => boolean): any; removeEventListener(type: string, listener: (eventObj: Function) => boolean): void; removeEventListener(type: string, listener: (eventObj: Object) => boolean): void; removeAllEventListeners(type: string): void; diff --git a/underscore-ko/underscore-ko.d.ts b/underscore-ko/underscore-ko.d.ts index 5d65b7b8ac..a7f68edaa4 100644 --- a/underscore-ko/underscore-ko.d.ts +++ b/underscore-ko/underscore-ko.d.ts @@ -105,10 +105,10 @@ interface KnockoutObservableArrayFunctions { difference(...others: T[][]): T[]; difference_(...others: T[][]): T[]; - uniq(isSorted?: bool, iterator?: _.ListIterator): T[]; - uniq_(isSorted?: bool, iterator?: _.ListIterator): T[]; - unique(isSorted?: bool, iterator?: _.ListIterator): T[]; - unique_(isSorted?: bool, iterator?: _.ListIterator): T[]; + uniq(isSorted?: boolean, iterator?: _.ListIterator): T[]; + uniq_(isSorted?: boolean, iterator?: _.ListIterator): T[]; + unique(isSorted?: boolean, iterator?: _.ListIterator): T[]; + unique_(isSorted?: boolean, iterator?: _.ListIterator): T[]; zip(...arrays: any[]): any[]; zip_(...arrays: any[]): any[]; diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 5c74f7ae1c..c67442039a 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -1157,7 +1157,7 @@ declare module _ { /** * Returns true if object is either true or false. * @param object Check if this object is a bool. - * @return True if `object` is a bool, otherwise false. + * @return True if `object` is a boolean, otherwise false. **/ export function isBoolean(object: any): boolean; diff --git a/webaudioapi/waa-20120802.d.ts b/webaudioapi/waa-20120802.d.ts index 271bb41393..489cd4efb2 100644 --- a/webaudioapi/waa-20120802.d.ts +++ b/webaudioapi/waa-20120802.d.ts @@ -11,7 +11,7 @@ interface webkitAudioContext { activeSourceCount: number; createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; - createBuffer(buffer: ArrayBuffer, mixToMono: bool): AudioBuffer; + createBuffer(buffer: ArrayBuffer, mixToMono: boolean): AudioBuffer; decodeAudioData(audioData: ArrayBuffer, successCallback: any, errorCallback?: any): void; @@ -125,7 +125,7 @@ interface AudioBufferSourceNode extends AudioSourceNode { playbackState: number; buffer: AudioBuffer; playbackRate: AudioParam; - loop: bool; + loop: boolean; noteOn(when: number): void; noteGrainOn(when: number, grainOffset: number, grainDuration: number): void; noteOff(when: number): void; @@ -238,7 +238,7 @@ interface MediaStreamAudioSourceNode extends AudioSourceNode { interface ConvolverNode extends AudioNode { buffer: AudioBuffer; - normalize: bool; + normalize: boolean; } diff --git a/zepto/zepto-tests.ts b/zepto/zepto-tests.ts index a72695b1c1..fc3760f9a8 100644 --- a/zepto/zepto-tests.ts +++ b/zepto/zepto-tests.ts @@ -164,7 +164,7 @@ var handler = function (e: Event) { }; // ensures that the handler will be executed in the context of `obj`: -$(document).on('click', <(e: Event) => bool>$.proxy(handler, obj)); +$(document).on('click', <(e: Event) => boolean>$.proxy(handler, obj)); elem = $('#content'); // observe all clicks inside #content: @@ -177,7 +177,7 @@ $(document).on('click', 'a', function (e) { return true; }); // add a handler for a custom event $(document).on( 'mylib:change', - <(e: Event) => bool>function (e, from, to) { + <(e: Event) => boolean>function (e, from, to) { console.log('change on %o with data %s, %s', e.target, from, to); return true; } @@ -186,7 +186,7 @@ $(document).on( $(document.body).trigger('mylib:change', ['one', 'two']); $(document).on('ajaxBeforeSend', - <(e: Event) => bool>function (e, xhr, options) { + <(e: Event) => boolean>function (e, xhr, options) { // This gets fired for every Ajax request performed on the page. // The xhr object and $.ajax() options are available for editing. // Return false to cancel this request. diff --git a/zepto/zepto.d.ts b/zepto/zepto.d.ts index 806d82c977..5b59634b6d 100644 --- a/zepto/zepto.d.ts +++ b/zepto/zepto.d.ts @@ -108,7 +108,7 @@ interface ZeptoStatic { * @see ZeptoStatic.extend * @param deep **/ - extend(deep: bool, target: any, ...sources: any[]): any; + extend(deep: boolean, target: any, ...sources: any[]): any; /** * Zepto.fn is an object that holds all of the methods that are available on Zepto collections, such as addClass(), attr(), and other. Adding a function to this object makes that method available on every Zepto collection.