Multiple bool => boolean fixes

This commit is contained in:
Boris Yankov
2013-08-07 18:02:05 +03:00
parent 38888208fb
commit f677cca98d
36 changed files with 183 additions and 185 deletions

View File

@@ -236,7 +236,7 @@ var IO = (function() {
},
directoryExists: function(path) {
return <bool>fso.FolderExists(path);
return <boolean>fso.FolderExists(path);
},
createDirectory: function(path) {

View File

@@ -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;
/**

12
box2d/box2dweb.d.ts vendored
View File

@@ -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.

142
breeze/breeze-1.0.d.ts vendored
View File

@@ -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 {

View File

@@ -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 {

12
easeljs/easeljs.d.ts vendored
View File

@@ -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;
}

View File

@@ -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)

View File

@@ -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;

View File

@@ -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;

View File

@@ -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

View File

@@ -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.

View File

@@ -141,7 +141,7 @@ interface IELangBase {
createContent(): void;
createRadioGroup(node: JQuery,
isMethodAppend: bool,
isMethodAppend: boolean,
buttonNumber: number,
defaultButton: number,
btnLabels: string[],

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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

2
kolite/kolite.d.ts vendored
View File

@@ -42,7 +42,7 @@ interface JQuery {
interface DirtyFlag {
isDirty: KnockoutComputed<boolean>;
new (objectToTrack: any, isInitiallyDirty?: bool, hashFunction?: () => any);
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any);
reset(): void;
}

4
less/less.d.ts vendored
View File

@@ -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;

View File

@@ -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[];
}

View File

@@ -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 { }

2
noVNC/noVNC.d.ts vendored
View File

@@ -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 {

12
node-azure/azure.d.ts vendored
View File

@@ -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

View File

@@ -78,7 +78,7 @@ function runTests() {
}
}
function falsy(condition: () => bool, action: () => any) {
function falsy(condition: () => boolean, action: () => any) {
if (condition() === false)
action();
}

View File

@@ -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
}

View File

@@ -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;
}

6
rx.js/rx.js.d.ts vendored
View File

@@ -221,9 +221,9 @@ declare module Rx {
dispose(): void;
}
export interface Enumerator<T> {
(moveNext: () =>bool, getCurrent: () => T, dispose: () =>void ): IEnumerator<T>;
(moveNext: () =>boolean, getCurrent: () => T, dispose: () =>void ): IEnumerator<T>;
create(moveNext: () =>bool, getCurrent: () => T, dispose?: () =>void ): IEnumerator<T>;
create(moveNext: () =>boolean, getCurrent: () => T, dispose?: () =>void ): IEnumerator<T>;
}
// Enumerable
@@ -384,7 +384,7 @@ declare module Rx {
empty<T>(scheduler?: IScheduler): IObservable<T>;
fromArray<T>(array: T[], scheduler?: IScheduler): IObservable<T>;
fromArray<T>(array: { length: number;[index: number]: T; }, scheduler?: IScheduler): IObservable<T>;
generate<TState, TResult>(initialState: TState, condition: (state: TState) => bool, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult, scheduler?: IScheduler): IObservable<TResult>;
generate<TState, TResult>(initialState: TState, condition: (state: TState) => boolean, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult, scheduler?: IScheduler): IObservable<TResult>;
never<T>(): IObservable<T>;
range(start: number, count: number, scheduler?: IScheduler): IObservable<number>;
repeat<T>(value: T, repeatCount?: number, scheduler?: IScheduler): IObservable<T>;

View File

@@ -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;

22
sugar/sugar.d.ts vendored
View File

@@ -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<T> {
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<T> {
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 <f>.
@@ -2234,7 +2234,7 @@ interface Array<T> {
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 <f>.
@@ -2257,7 +2257,7 @@ interface Array<T> {
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 <f>
@@ -2285,7 +2285,7 @@ interface Array<T> {
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<T> {
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 <map>.
@@ -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.

View File

@@ -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;
}

16
threejs/three.d.ts vendored
View File

@@ -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;

View File

@@ -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;

View File

@@ -105,10 +105,10 @@ interface KnockoutObservableArrayFunctions<T> {
difference(...others: T[][]): T[];
difference_(...others: T[][]): T[];
uniq<TSort>(isSorted?: bool, iterator?: _.ListIterator<T, TSort>): T[];
uniq_<TSort>(isSorted?: bool, iterator?: _.ListIterator<T, TSort>): T[];
unique<TSort>(isSorted?: bool, iterator?: _.ListIterator<T, TSort>): T[];
unique_<TSort>(isSorted?: bool, iterator?: _.ListIterator<T, TSort>): T[];
uniq<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort>): T[];
uniq_<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort>): T[];
unique<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort>): T[];
unique_<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort>): T[];
zip(...arrays: any[]): any[];
zip_(...arrays: any[]): any[];

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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.

2
zepto/zepto.d.ts vendored
View File

@@ -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.