Big replacement: bool with boolean

This commit is contained in:
Boris Yankov
2013-08-07 16:59:39 +03:00
parent bded8a8af5
commit dd35f69637
128 changed files with 4254 additions and 4240 deletions

View File

@@ -1,4 +1,18 @@
var ExecResult = (function () {
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
var ExecResult = (function () {
function ExecResult() {
this.stdout = "";
this.stderr = "";

View File

@@ -28,7 +28,7 @@ declare module Backbone {
getRelations():Relation[];
fetchRelated(key:string, options?:any, update?:bool):any;
fetchRelated(key:string, options?:any, update?:boolean):any;
toJSON():any;
@@ -54,7 +54,7 @@ declare module Backbone {
reverseRelation:any;
related:any;
checkPreconditions():bool;
checkPreconditions():boolean;
setRelated(related:Model):void;
@@ -135,9 +135,9 @@ declare module Backbone {
processOrphanRelations():void;
retroFitRelation(relation:RelationalModel, create:bool):Collection;
retroFitRelation(relation:RelationalModel, create:boolean):Collection;
getCollection(type:RelationalModel, create:bool):Collection;
getCollection(type:RelationalModel, create:boolean):Collection;
getObjectByName(name:string):any;

View File

@@ -40,9 +40,9 @@ declare module Backgrid {
cell: string;
headerCell: string;
label: string;
sortable: bool;
editable: bool;
renderable: bool;
sortable: boolean;
editable: boolean;
renderable: boolean;
formater: string;
}

View File

@@ -18,9 +18,9 @@ declare module BgiFrame {
left: string;
width: string;
height: string;
opacity: bool;
opacity: boolean;
src: string;
conditional: bool;
conditional: boolean;
}
interface IBgiframe {

View File

@@ -23,21 +23,21 @@ interface BootboxHandler {
interface BootboxOption {
header: string;
headerCloseButton: bool;
headerCloseButton: boolean;
}
interface BootboxStatic {
alert(message: string, callback: () => void): void;
alert(message: string, customButtonText?: string, callback?: () => void): void;
confirm(message: string, callback: (result: bool) => void): void;
confirm(message: string, cancelButtonText?: string, confirmButtonText?: string, callback?: (result: bool) => void): void;
confirm(message: string, callback: (result: boolean) => void): void;
confirm(message: string, cancelButtonText?: string, confirmButtonText?: string, callback?: (result: boolean) => void): void;
prompt(message: string, callback: (result: string) => void, defaultValue?: string): void;
prompt(message: string, cancelButtonText?: string, confirmButtonText?: string, callback?: (result: string) => void, defaultValue?: string): void;
dialog(message: string, handlers: BootboxHandler[], options?: any): void;
dialog(message: string, handler: BootboxHandler): void;
dialog(message: string): void;
hideAll(): void;
animate(shouldAnimate: bool): void;
animate(shouldAnimate: boolean): void;
backdrop(backdropValue: string): void;
classes(customCssClasses: string): void;
setIcons(icons: BootboxIcons): void;

View File

@@ -15,7 +15,7 @@ interface NotifyOptions {
Allow alert to be closable through a close icon.
@param {bool} closable
*/
closable?: bool;
closable?: boolean;
/**
Alert transition, pretty sure only fade is supported, you can try others if you wish.
@param {string} transition
@@ -44,7 +44,7 @@ interface NotifyOptions {
}
interface NotifyFadeOutSettings {
enabled?: bool;
enabled?: boolean;
delay?: number;
}

View File

@@ -11,11 +11,11 @@ interface DatepickerOptions {
weekStart?: number;
startDate?: Date;
endDate?: Date;
autoclose?: bool;
autoclose?: boolean;
startView?: number;
todayBtn?: bool;
todayHighlight?: bool;
keyboardNavigation?: bool;
todayBtn?: boolean;
todayHighlight?: boolean;
keyboardNavigation?: boolean;
language?: string;
}

160
box2d/box2dweb.d.ts vendored
View File

@@ -78,7 +78,7 @@ declare module Box2D.Common {
* b2Assert is used internally to handle assertions. By default, calls are commented out to save performance, so they serve more as documentation than anything else.
* @param a Asset an expression is true.
**/
public static b2Assert(a: bool): void;
public static b2Assert(a: boolean): void;
/**
* Friction mixing law. Feel free to customize this.
@@ -431,7 +431,7 @@ declare module Box2D.Common.Math {
* @param x Number to check for validity.
* @return True if x is valid, otherwise false.
**/
public static IsValid(x: number): bool;
public static IsValid(x: number): boolean;
/**
* Dot product of two vector 2s.
@@ -665,7 +665,7 @@ declare module Box2D.Common.Math {
* @param x Number to check if it is a power of 2.
* @return True if x is a power of 2, otherwise false.
**/
public static IsPowerOfTwo(x: number): bool;
public static IsPowerOfTwo(x: number): boolean;
/**
* Global instance of a zero'ed vector. Use as read-only.
@@ -860,7 +860,7 @@ declare module Box2D.Common.Math {
* True if the vector 2 is valid, otherwise false. A valid vector has finite values.
* @return True if the vector 2 is valid, otherwise false.
**/
public IsValid(): bool;
public IsValid(): boolean;
/**
* Calculates the length of the vector 2.
@@ -1071,7 +1071,7 @@ declare module Box2D.Collision {
* @param aabb AABB to see if it is contained.
* @return True if aabb is contained, otherwise false.
**/
public Contains(aabb: b2AABB): bool;
public Contains(aabb: b2AABB): boolean;
/**
* Gets the center of the AABB.
@@ -1089,7 +1089,7 @@ declare module Box2D.Collision {
* Verify that the bounds are sorted.
* @return True if the bounds are sorted, otherwise false.
**/
public IsValid(): bool;
public IsValid(): boolean;
/**
* Perform a precise raycast against this AABB.
@@ -1097,14 +1097,14 @@ declare module Box2D.Collision {
* @param input Ray cast input values.
* @return True if the ray cast hits this AABB, otherwise false.
**/
public RayCast(output: b2RayCastOutput, input: b2RayCastInput): bool;
public RayCast(output: b2RayCastOutput, input: b2RayCastInput): boolean;
/**
* Tests if another AABB overlaps this AABB.
* @param other Other AABB to test for overlap.
* @return True if other overlaps this AABB, otherwise false.
**/
public TestOverlap(other: b2AABB): bool;
public TestOverlap(other: b2AABB): boolean;
}
}
@@ -1228,7 +1228,7 @@ declare module Box2D.Collision {
/**
* Use shape radii in computation?
**/
public useRadii: bool;
public useRadii: boolean;
}
}
@@ -1365,7 +1365,7 @@ declare module Box2D.Collision {
* @param aabb Swept AABB.
* @param displacement Extra AABB displacement.
**/
public MoveProxy(proxy: b2DynamicTreeNode, aabb: b2AABB, displacement: Box2D.Common.Math.b2Vec2): bool;
public MoveProxy(proxy: b2DynamicTreeNode, aabb: b2AABB, displacement: Box2D.Common.Math.b2Vec2): boolean;
/**
* Query an AABB for overlapping proxies. The callback is called for each proxy that overlaps the supplied AABB. The callback should match function signature fuction callback(proxy:b2DynamicTreeNode):Boolean and should return false to trigger premature termination.
@@ -1456,7 +1456,7 @@ declare module Box2D.Collision {
* @param proxyB Second proxy to test.
* @return True if the proxyA and proxyB overlap with Fat AABBs, otherwise false.
**/
public TestOverlap(proxyA: b2DynamicTreeNode, proxyB: b2DynamicTreeNode): bool;
public TestOverlap(proxyA: b2DynamicTreeNode, proxyB: b2DynamicTreeNode): boolean;
/**
* Update the pairs. This results in pair callbacks. This can only add pairs.
@@ -1722,7 +1722,7 @@ declare module Box2D.Collision {
lambda: number[],
normal: Box2D.Common.Math.b2Vec2,
segment: b2Segment,
maxLambda: number): bool;
maxLambda: number): boolean;
}
}
@@ -1999,7 +1999,7 @@ declare module Box2D.Collision.Shapes {
public RayCast(
output: b2RayCastOutput,
input: b2RayCastInput,
transform: Box2D.Common.Math.b2Transform): bool;
transform: Box2D.Common.Math.b2Transform): boolean;
/**
* Set the circle shape values from another shape.
@@ -2025,7 +2025,7 @@ declare module Box2D.Collision.Shapes {
* @param p Point to test against, in world coordinates.
* @return True if the point is in this shape, otherwise false.
**/
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): bool;
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): boolean;
}
}
@@ -2039,7 +2039,7 @@ declare module Box2D.Collision.Shapes {
/**
* Whether to create an extra edge between the first and last vertices.
**/
public isALoop: bool;
public isALoop: boolean;
/**
* The number of vertices in the chain.
@@ -2156,13 +2156,13 @@ declare module Box2D.Collision.Shapes {
* Determines if the first corner of this edge bends towards the solid side.
* @return True if convex, otherwise false.
**/
public Corner1IsConvex(): bool;
public Corner1IsConvex(): boolean;
/**
* Determines if the second corner of this edge bends towards the solid side.
* @return True if convex, otherwise false.
**/
public Corner2IsConvex(): bool;
public Corner2IsConvex(): boolean;
/**
* Get the first vertex and apply the supplied transform.
@@ -2202,7 +2202,7 @@ declare module Box2D.Collision.Shapes {
public RayCast(
output: b2RayCastOutput,
input: b2RayCastInput,
transform: Box2D.Common.Math.b2Transform): bool;
transform: Box2D.Common.Math.b2Transform): boolean;
/**
* Test a point for containment in this shape. This only works for convex shapes.
@@ -2210,7 +2210,7 @@ declare module Box2D.Collision.Shapes {
* @param p Point to test against, in world coordinates.
* @return True if the point is in this shape, otherwise false.
**/
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): bool;
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): boolean;
}
}
@@ -2360,7 +2360,7 @@ declare module Box2D.Collision.Shapes {
public RayCast(
output: b2RayCastOutput,
input: b2RayCastInput,
transform: Box2D.Common.Math.b2Transform): bool;
transform: Box2D.Common.Math.b2Transform): boolean;
/**
* Set the shape values from another shape.
@@ -2416,7 +2416,7 @@ declare module Box2D.Collision.Shapes {
* @param p Point to test against, in world coordinates.
* @return True if the point is in this shape, otherwise false.
**/
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): bool;
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): boolean;
}
}
@@ -2502,7 +2502,7 @@ declare module Box2D.Collision.Shapes {
public RayCast(
output: b2RayCastOutput,
input: b2RayCastInput,
transform: Box2D.Common.Math.b2Transform): bool;
transform: Box2D.Common.Math.b2Transform): boolean;
/**
* Set the shape values from another shape.
@@ -2522,7 +2522,7 @@ declare module Box2D.Collision.Shapes {
shape1: b2Shape,
transform1: Box2D.Common.Math.b2Transform,
shape2: b2Shape,
transform2: Box2D.Common.Math.b2Transform): bool;
transform2: Box2D.Common.Math.b2Transform): boolean;
/**
* Test a point for containment in this shape. This only works for convex shapes.
@@ -2530,7 +2530,7 @@ declare module Box2D.Collision.Shapes {
* @param p Point to test against, in world coordinates.
* @return True if the point is in this shape, otherwise false.
**/
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): bool;
public TestPoint(xf: Box2D.Common.Math.b2Transform, p: Box2D.Common.Math.b2Vec2): boolean;
}
}
@@ -2773,31 +2773,31 @@ declare module Box2D.Dynamics {
* Get the active state of the body.
* @return True if the body is active, otherwise false.
**/
public IsActive(): bool;
public IsActive(): boolean;
/**
* Get the sleeping state of this body.
* @return True if the body is awake, otherwise false.
**/
public IsAwake(): bool;
public IsAwake(): boolean;
/**
* Is the body treated like a bullet for continuous collision detection?
* @return True if the body is treated like a bullet, otherwise false.
**/
public IsBullet(): bool;
public IsBullet(): boolean;
/**
* Does this body have fixed rotation?
* @return True for fixed, otherwise false.
**/
public IsFixedRotation(): bool;
public IsFixedRotation(): boolean;
/**
* Is this body allowed to sleep?
* @return True if the body can sleep, otherwise false.
**/
public IsSleepingAllowed(): bool;
public IsSleepingAllowed(): boolean;
/**
* Merges another body into this. Only fixtures, mass and velocity are effected, Other properties are ignored.
@@ -2814,7 +2814,7 @@ declare module Box2D.Dynamics {
* Set the active state of the body. An inactive body is not simulated and cannot be collided with or woken up. If you pass a flag of true, all fixtures will be added to the broad-phase. If you pass a flag of false, all fixtures will be removed from the broad-phase and all contacts will be destroyed. Fixtures and joints are otherwise unaffected. You may continue to create/destroy fixtures and joints on inactive bodies. Fixtures on an inactive body are implicitly inactive and will not participate in collisions, ray-casts, or queries. Joints connected to an inactive body are implicitly inactive. An inactive body is still owned by a b2World object and remains in the body list.
* @param flag True to activate, false to deactivate.
**/
public SetActive(flag: bool): void;
public SetActive(flag: boolean): void;
/**
* Set the world body angle
@@ -2838,19 +2838,19 @@ declare module Box2D.Dynamics {
* Set the sleep state of the body. A sleeping body has vety low CPU cost.
* @param flag True to set the body to awake, false to put it to sleep.
**/
public SetAwake(flag: bool): void;
public SetAwake(flag: boolean): void;
/**
* Should this body be treated like a bullet for continuous collision detection?
* @param flag True for bullet, false for normal.
**/
public SetBullet(flag: bool): void;
public SetBullet(flag: boolean): void;
/**
* Set this body to have fixed rotation. This causes the mass to be reset.
* @param fixed True for no rotation, false to allow for rotation.
**/
public SetFixedRotation(fixed: bool): void;
public SetFixedRotation(fixed: boolean): void;
/**
* Set the linear damping of the body.
@@ -2888,7 +2888,7 @@ declare module Box2D.Dynamics {
* Is this body allowed to sleep
* @param flag True if the body can sleep, false if not.
**/
public SetSleepingAllowed(flag: bool): void;
public SetSleepingAllowed(flag: boolean): void;
/**
* Set the position of the body's origin and rotation (radians). This breaks any contacts and wakes the other bodies. Note this is less efficient than the other overload - you should use that if the angle is available.
@@ -2914,7 +2914,7 @@ declare module Box2D.Dynamics {
* @param callback
* @return The newly created bodies from the split.
**/
public Split(callback: (fixture: b2Fixture) => bool): b2Body;
public Split(callback: (fixture: b2Fixture) => boolean): b2Body;
}
}
@@ -2928,12 +2928,12 @@ declare module Box2D.Dynamics {
/**
* Does this body start out active?
**/
public active: bool;
public active: boolean;
/**
* Set this flag to false if this body should never fall asleep. Note that this increases CPU usage.
**/
public allowSleep: bool;
public allowSleep: boolean;
/**
* The world angle of the body in radians.
@@ -2953,18 +2953,18 @@ declare module Box2D.Dynamics {
/**
* Is this body initially awake or sleeping?
**/
public awake: bool;
public awake: boolean;
/**
* Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are prevented from tunneling through static bodies.
* @warning You should use this flag sparingly since it increases processing time.
**/
public bullet: bool;
public bullet: boolean;
/**
* Should this body be prevented from rotating? Useful for characters.
**/
public fixedRotation: bool;
public fixedRotation: boolean;
/**
* Scales the inertia tensor.
@@ -3015,7 +3015,7 @@ declare module Box2D.Dynamics {
* @param userData User provided data. Comments indicate that this might be a b2Fixture.
* @return True if the fixture should be considered for ray intersection, otherwise false.
**/
public RayCollide(userData: any): bool;
public RayCollide(userData: any): boolean;
/**
* Return true if contact calculations should be performed between these two fixtures.
@@ -3024,7 +3024,7 @@ declare module Box2D.Dynamics {
* @param fixtureB b2Fixture potentially colliding with fixtureA.
* @return True if fixtureA and fixtureB probably collide requiring more calculations, otherwise false.
**/
public ShouldCollide(fixtureA: b2Fixture, fixtureB: b2Fixture): bool;
public ShouldCollide(fixtureA: b2Fixture, fixtureB: b2Fixture): boolean;
}
}
@@ -3406,7 +3406,7 @@ declare module Box2D.Dynamics {
* Is this fixture a sensor (non-solid)?
* @return True if the shape is a sensor, otherwise false.
**/
public IsSensor(): bool;
public IsSensor(): boolean;
/**
* Perform a ray cast against this shape.
@@ -3414,7 +3414,7 @@ declare module Box2D.Dynamics {
* @param input Ray cast input parameters.
* @return True if the ray hits the shape, otherwise false.
**/
public RayCast(output: Box2D.Collision.b2RayCastOutput, input: Box2D.Collision.b2RayCastInput): bool;
public RayCast(output: Box2D.Collision.b2RayCastOutput, input: Box2D.Collision.b2RayCastInput): boolean;
/**
* Set the density of this fixture. This will _not_ automatically adjust the mass of the body. You must call b2Body::ResetMassData to update the body's mass.
@@ -3444,7 +3444,7 @@ declare module Box2D.Dynamics {
* Set if this fixture is a sensor.
* @param sensor True to set as a sensor, false to not be a sensor.
**/
public SetSensor(sensor: bool): void;
public SetSensor(sensor: boolean): void;
/**
* Set the user data. Use this to store your application specific data.
@@ -3457,7 +3457,7 @@ declare module Box2D.Dynamics {
* @param p Point to test against, in world coordinates.
* @return True if the point is in this shape, otherwise false.
**/
public TestPoint(p: Box2D.Common.Math.b2Vec2): bool;
public TestPoint(p: Box2D.Common.Math.b2Vec2): boolean;
}
}
@@ -3486,7 +3486,7 @@ declare module Box2D.Dynamics {
/**
* A sensor shape collects contact information but never generates a collision response.
**/
public isSensor: bool;
public isSensor: boolean;
/**
* The restitution (elasticity) usually in the range [0,1].
@@ -3532,7 +3532,7 @@ declare module Box2D.Dynamics {
* @param gravity The world gravity vector.
* @param doSleep Improvie performance by not simulating inactive bodies.
**/
constructor(gravity: Box2D.Common.Math.b2Vec2, doSleep: bool);
constructor(gravity: Box2D.Common.Math.b2Vec2, doSleep: boolean);
/**
* Add a controller to the world list.
@@ -3651,7 +3651,7 @@ declare module Box2D.Dynamics {
* Is the world locked (in the middle of a time step).
* @return True if the world is locked and in the middle of a time step, otherwise false.
**/
public IsLocked(): bool;
public IsLocked(): boolean;
/**
* Query the world for all fixtures that potentially overlap the provided AABB.
@@ -3737,7 +3737,7 @@ declare module Box2D.Dynamics {
* Enable/disable continuous physics. For testing.
* @param flag True for continuous physics, otherwise false.
**/
public SetContinuousPhysics(flag: bool): void;
public SetContinuousPhysics(flag: boolean): void;
/**
* Register a routine for debug drawing. The debug draw functions are called inside the b2World::Step method, so make sure your renderer is ready to consume draw commands when you call Step().
@@ -3761,7 +3761,7 @@ declare module Box2D.Dynamics {
* Enable/disable warm starting. For testing.
* @param flag True for warm starting, otherwise false.
**/
public SetWarmStarting(flag: bool): void;
public SetWarmStarting(flag: boolean): void;
/**
* Take a time step. This performs collision detection, integration, and constraint solution.
@@ -3830,37 +3830,37 @@ declare module Box2D.Dynamics.Contacts {
* Does this contact generate TOI events for continuous simulation.
* @return True for continous, otherwise false.
**/
public IsContinuous(): bool;
public IsContinuous(): boolean;
/**
* Has this contact been disabled?
* @return True if disabled, otherwise false.
**/
public IsEnabled(): bool;
public IsEnabled(): boolean;
/**
* Is this contact a sensor?
* @return True if sensor, otherwise false.
**/
public IsSensor(): bool;
public IsSensor(): boolean;
/**
* Is this contact touching.
* @return True if contact is touching, otherwise false.
**/
public IsTouching(): bool;
public IsTouching(): boolean;
/**
* Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collision).
* @param flag True to enable, false to disable.
**/
public SetEnabled(flag: bool): void;
public SetEnabled(flag: boolean): void;
/**
* Change this to be a sensor or-non-sensor contact.
* @param sensor True to be sensor, false to not be a sensor.
**/
public SetSensor(sensor: bool): void;
public SetSensor(sensor: boolean): void;
}
}
@@ -4088,13 +4088,13 @@ declare module Box2D.Dynamics.Controllers {
* If false, bodies are assumed to be uniformly dense, otherwise use the shapes densities.
* @default = false.
**/
public useDensity: bool;
public useDensity: boolean;
/**
* If true, gravity is taken from the world instead of the gravity parameter.
* @default = true.
**/
public useWorldGravity: bool;
public useWorldGravity: boolean;
/**
* Fluid velocity, for drag calculations.
@@ -4157,7 +4157,7 @@ declare module Box2D.Dynamics.Controllers {
/**
* If true, gravity is proportional to r^-2, otherwise r^-1.
**/
public invSqr: bool;
public invSqr: boolean;
/**
* @see b2Controller.Step
@@ -4265,7 +4265,7 @@ declare module Box2D.Dynamics.Joints {
* Short-cut function to determine if either body is inactive.
* @return True if active, otherwise false.
**/
public IsActive(): bool;
public IsActive(): boolean;
/**
* Set the user data pointer.
@@ -4295,7 +4295,7 @@ declare module Box2D.Dynamics.Joints {
/**
* Set this flag to true if the attached bodies should collide.
**/
public collideConnected: bool;
public collideConnected: boolean;
/**
* The joint type is set automatically for concrete joint types.
@@ -4661,13 +4661,13 @@ declare module Box2D.Dynamics.Joints {
* Enable/disable the joint limit.
* @param flag True to enable, false to disable limits
**/
public EnableLimit(flag: bool): void;
public EnableLimit(flag: boolean): void;
/**
* Enable/disable the joint motor.
* @param flag True to enable, false to disable the motor.
**/
public EnableMotor(flag: bool): void;
public EnableMotor(flag: boolean): void;
/**
* Get the anchor point on bodyA in world coordinates.
@@ -4741,13 +4741,13 @@ declare module Box2D.Dynamics.Joints {
* Is the joint limit enabled?
* @return True if enabled otherwise false.
**/
public IsLimitEnabled(): bool;
public IsLimitEnabled(): boolean;
/**
* Is the joint motor enabled?
* @return True if enabled, otherwise false.
**/
public IsMotorEnabled(): bool;
public IsMotorEnabled(): boolean;
/**
* Set the joint limits, usually in meters.
@@ -4780,12 +4780,12 @@ declare module Box2D.Dynamics.Joints {
/**
* Enable/disable the joint limit.
**/
public enableLimit: bool;
public enableLimit: boolean;
/**
* Enable/disable the joint motor.
**/
public enableMotor: bool;
public enableMotor: boolean;
/**
* The local anchor point relative to body1's origin.
@@ -4961,13 +4961,13 @@ declare module Box2D.Dynamics.Joints {
* Enable/disable the joint limit.
* @param flag True to enable, false to disable.
**/
public EnableLimit(flag: bool): void;
public EnableLimit(flag: boolean): void;
/**
* Enable/disable the joint motor.
* @param flag True to enable, false to disable.
**/
public EnableMotor(flag: bool): void;
public EnableMotor(flag: boolean): void;
/**
* Get the anchor point on bodyA in world coordinates.
@@ -5035,13 +5035,13 @@ declare module Box2D.Dynamics.Joints {
* Is the joint limit enabled?
* @return True if enabled otherwise false.
**/
public IsLimitEnabled(): bool;
public IsLimitEnabled(): boolean;
/**
* Is the joint motor enabled?
* @return True if enabled, otherwise false.
**/
public IsMotorEnabled(): bool;
public IsMotorEnabled(): boolean;
/**
* Set the joint limits, usually in meters.
@@ -5074,12 +5074,12 @@ declare module Box2D.Dynamics.Joints {
/**
* Enable/disable the joint limit.
**/
public enableLimit: bool;
public enableLimit: boolean;
/**
* Enable/disable the joint motor.
**/
public enableMotor: bool;
public enableMotor: boolean;
/**
* The local anchor point relative to body1's origin.
@@ -5278,13 +5278,13 @@ declare module Box2D.Dynamics.Joints {
* Enable/disable the joint limit.
* @param flag True to enable, false to disable.
**/
public EnableLimit(flag: bool): void;
public EnableLimit(flag: boolean): void;
/**
* Enable/disable the joint motor.
* @param flag True to enable, false to diasable.
**/
public EnableMotor(flag: bool): void;
public EnableMotor(flag: boolean): void;
/**
* Get the anchor point on bodyA in world coordinates.
@@ -5352,13 +5352,13 @@ declare module Box2D.Dynamics.Joints {
* Is the joint limit enabled?
* @return True if enabled, false if disabled.
**/
public IsLimitEnabled(): bool;
public IsLimitEnabled(): boolean;
/**
* Is the joint motor enabled?
* @return True if enabled, false if disabled.
**/
public IsMotorEnabled(): bool;
public IsMotorEnabled(): boolean;
/**
* Set the joint limits in radians.
@@ -5391,12 +5391,12 @@ declare module Box2D.Dynamics.Joints {
/**
* A flag to enable joint limits.
**/
public enableLimit: bool;
public enableLimit: boolean;
/**
* A flag to enable the joint motor.
**/
public enableMotor: bool;
public enableMotor: boolean;
/**
* The local anchor point relative to body1's origin.

View File

@@ -24,7 +24,7 @@ interface Casper {
captureBase64(format: string, area: any);
captureSelector(targetFile: string, selector: string);
clear();
debugHTML(selector?: string, outer?: bool);
debugHTML(selector?: string, outer?: boolean);
debugPage();
die(message: string, status?: number);
download(url: string, target?: string, method?: string, data?: any);
@@ -37,7 +37,7 @@ interface Casper {
fetchText(selector: string);
forward();
log(message: string, level?: string, space?: string);
fill(selector: string, values: any, submit?: bool);
fill(selector: string, values: any, submit?: boolean);
getCurrentUrl(): string;
getElementAttribute(selector: string, attribute: string): string;
getElementBounds(selector: string): ElementBounds;
@@ -45,7 +45,7 @@ interface Casper {
getElementInfo(selector: string): ElementInfo;
getFormValues(selector: string): any;
getGlobal(name: string): any;
getHTML(selector?: string, outer?: bool): string;
getHTML(selector?: string, outer?: boolean): string;
getPageContent(): string;
getTitle(): string;
mouseEvent(type: string, selector: string);
@@ -58,7 +58,7 @@ interface Casper {
sendKeys(selector: string, keys: string, options?: any);
setHttpAuth(username: string, password: string);
start(url?: string, then?: (response: HttpResponse) => void): Casper;
status(asString: bool): any;
status(asString: boolean): any;
then(fn: (self?: Casper) => void);
thenClick(selector: string);
thenEvaluate(fn: Function, ...args: any[]);
@@ -123,12 +123,12 @@ interface ElementInfo {
y: number;
width: number;
height: number;
visible: bool;
visible: boolean;
}
interface CasperOptions {
clientScripts: Array;
exitOnError: bool;
exitOnError: boolean;
httpStatusHandlers: any;
logLevel: string;
onAlert: Function;
@@ -145,10 +145,10 @@ interface CasperOptions {
page: WebPage;
pageSettings: any;
remoteScripts: Array;
safeLogs: bool;
safeLogs: boolean;
stepTimeout: number;
timeout: number;
verbose: bool;
verbose: boolean;
viewportSize: any;
waitTimeout: number;
}
@@ -170,7 +170,7 @@ interface ClientUtils {
getFormValues(selector: string);
mouseEvent(type: string, selector: string);
removeElementsByXPath(expression: string);
sendAJAX(url: string, method?: string, data?: any, async?: bool);
sendAJAX(url: string, method?: string, data?: any, async?: boolean);
visible(selector: string);
}
@@ -225,7 +225,7 @@ interface Cases {
}
interface Case {
success: bool;
success: boolean;
type: string;
standard: string;
file: string;
@@ -233,8 +233,8 @@ interface Case {
}
interface CaseValues {
subject: bool;
expected: bool;
subject: boolean;
expected: boolean;
}
interface Utils {

12
cheerio/cheerio.d.ts vendored
View File

@@ -7,7 +7,7 @@
interface Cheerio {
addClass(classNames: string): Cheerio;
hasClass(className: string): bool;
hasClass(className: string): boolean;
removeClass(className?: any): Cheerio;
attr(attributeName: string, value: any): Cheerio;
@@ -57,8 +57,8 @@ interface Cheerio {
root() : Cheerio;
dom(): any;
contains(container: Element, contained: Element): bool;
isArray(obj: any): bool;
contains(container: Element, contained: Element): boolean;
isArray(obj: any): boolean;
inArray(value: any, array: any[], fromIndex?: number): number;
merge(first: any[], second: any[]): any[];
@@ -66,9 +66,9 @@ interface Cheerio {
}
interface CheerioOptionsInterface {
ignoreWhitespace?: bool;
xmlMode?: bool;
lowerCaseTags?: bool;
ignoreWhitespace?: boolean;
xmlMode?: boolean;
lowerCaseTags?: boolean;
}
interface CheerioStatic {

View File

@@ -7,11 +7,11 @@
/// <reference path="../jquery/jquery.d.ts"/>
interface ChosenOptions {
allow_single_deselect?: bool;
allow_single_deselect?: boolean;
disable_search_threshold?: number;
disable_search?: bool;
search_contains?: bool;
single_backstroke_delete?: bool;
disable_search?: boolean;
search_contains?: boolean;
single_backstroke_delete?: boolean;
max_selected_options?: number;
placeholder_text_multiple?: string;
placeholder_text?: string;

View File

@@ -93,7 +93,7 @@ declare module "commander" {
/**
* Prompts the user for a confirmation.
*/
confirm(label: string, callback: (flag: bool) => any): void;
confirm(label: string, callback: (flag: boolean) => any): void;
/**
* Prompt for password with str, mask char and callback fn(val).
@@ -201,7 +201,7 @@ declare module "commander" {
/**
* Prompts the user for a confirmation.
*/
export function confirm(label: string, callback: (flag: bool) => any): void;
export function confirm(label: string, callback: (flag: boolean) => any): void;
/**
* Prompt for password with str, mask char and callback fn(val).

View File

@@ -336,7 +336,7 @@ interface IDurandalViewModelActiveItem {
*/
includeIn(includeIn: any): JQueryPromise;
/**
* Sets up a collection representing a pool of objects which the activator will activate. See below for details. Activators without an item bool always close their values on deactivate. Activators with an items pool only deactivate, but do not close them.
* Sets up a collection representing a pool of objects which the activator will activate. See below for details. Activators without an item boolean always close their values on deactivate. Activators with an items pool only deactivate, but do not close them.
*/
forItems(items): IDurandalViewModelActiveItem;
}

View File

@@ -107,7 +107,7 @@ declare module "dustjs-linkedin" {
* @param name the name used to register the compiled template into the internal cache. See render().
* @strip strip whitespaces from the output. Defaults to false.
*/
export function compile(source: string, name: string, strip?: bool): string;
export function compile(source: string, name: string, strip?: boolean): string;
/**
* Compiles source directly into a JavaScript function that takes a context and an optional callback (see dust.renderSource). Registers the template under [name] if this argument is supplied.

148
easeljs/easeljs.d.ts vendored
View File

@@ -32,7 +32,7 @@ declare module createjs {
hitArea: DisplayObject;
id: number;
mask: Shape;
mouseEnabled: bool;
mouseEnabled: boolean;
name: string;
parent: DisplayObject;
regX: number;
@@ -43,24 +43,24 @@ declare module createjs {
shadow: Shadow;
skewX: number;
skewY: number;
snapToPixel: bool;
static suppressCrossDomainErrors: bool;
visible: bool;
snapToPixel: boolean;
static suppressCrossDomainErrors: boolean;
visible: boolean;
x: number;
y: number;
// methods
cache(x: number, y: number, width: number, height: number, scale?: number): void;
clone(): DisplayObject;
draw(ctx: CanvasRenderingContext2D, ignoreCache?: bool): void;
draw(ctx: CanvasRenderingContext2D, ignoreCache?: boolean): void;
getCacheDataURL(): string;
getChildByName(name: string): DisplayObject;
getConcatenatedMatrix(mtx: Matrix2D): Matrix2D;
getMatrix(matrix: Matrix2D): Matrix2D;
getStage(): Stage;
globalToLocal(x: number, y: number): Point;
hitTest(x: number, y: number): bool;
isVisible(): bool;
hitTest(x: number, y: number): boolean;
isVisible(): boolean;
localToGlobal(x: number, y: number): Point;
localToLocal(x: number, y: number, target: DisplayObject): Point;
set(props: Object): DisplayObject;
@@ -79,24 +79,24 @@ declare module createjs {
tick: () => any;
// EventDispatcher mixins
addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
addEventListener(type: string, listener: (eventObj: Object) => boolean): Function;
addEventListener(type: string, listener: (eventObj: Object) => void): Function;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): Object;
removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
removeEventListener(type: string, listener: (eventObj: Object) => boolean): void;
removeEventListener(type: string, listener: (eventObj: Object) => void): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): void;
removeAllEventListeners(type: string): void;
dispatchEvent(eventObj: string, target: Object): bool;
dispatchEvent(eventObj: Object, target: Object): bool;
hasEventListener(type: string): bool;
dispatchEvent(eventObj: string, target: Object): boolean;
dispatchEvent(eventObj: Object, target: Object): boolean;
hasEventListener(type: string): boolean;
}
export class Filter {
constructor ();
applyFilter(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, targetCtx?: CanvasRenderingContext2D, targetX?: number, targetY?: number): bool;
applyFilter(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, targetCtx?: CanvasRenderingContext2D, targetX?: number, targetY?: number): boolean;
clone(): Filter;
getBounds(): Rectangle;
toString(): string;
@@ -130,7 +130,7 @@ declare module createjs {
export class Bitmap extends DisplayObject {
// properties
image: any; // HTMLImageElement or HTMLCanvasElement or HTMLVideoElement
snapToPixel: bool;
snapToPixel: boolean;
sourceRect: Rectangle;
// methods
@@ -150,8 +150,8 @@ declare module createjs {
currentAnimationFrame: number;
currentFrame: number;
offset: number;
paused: bool;
snapToPixel: bool;
paused: boolean;
snapToPixel: boolean;
spriteSheet: SpriteSheet;
// methods
@@ -178,12 +178,12 @@ declare module createjs {
overLabel: string;
outLabel: string;
downLabel: string;
play: bool;
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);
setEnabled(value: bool);
setEnabled(value: boolean);
toString(): string;
}
@@ -257,17 +257,17 @@ declare module createjs {
// methods
addChild(...child: DisplayObject[]): DisplayObject;
addChildAt(...childOrIndex: any[]): DisplayObject; // actually (...child: DisplayObject[], index: number)
clone(recursive?: bool): Container;
contains(child: DisplayObject): bool;
clone(recursive?: boolean): Container;
contains(child: DisplayObject): boolean;
getChildAt(index: number): DisplayObject;
getChildIndex(child: DisplayObject): number;
getNumChildren(): number;
getObjectsUnderPoint(x, number, y: number): DisplayObject[];
getObjectUnderPoint(x: number, y: number): DisplayObject;
hitTest(x: number, y: number): bool;
hitTest(x: number, y: number): boolean;
removeAllChildren(): void;
removeChild(...child: DisplayObject[]): bool;
removeChildAt(...index: number[]): bool;
removeChild(...child: DisplayObject[]): boolean;
removeChildAt(...index: number[]): boolean;
setChildIndex(child: DisplayObject, index: number): void;
sortChildren(sortFunction: (a: DisplayObject, b: DisplayObject) => number): void;
swapChildren(child1: DisplayObject, child2: DisplayObject): void;
@@ -298,18 +298,18 @@ declare module createjs {
// methods
static initialize(target: Object): void;
addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
addEventListener(type: string, listener: (eventObj: Object) => boolean): Function;
addEventListener(type: string, listener: (eventObj: Object) => void): Function;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): Object;
removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
removeEventListener(type: string, listener: (eventObj: Object) => boolean): void;
removeEventListener(type: string, listener: (eventObj: Object) => void): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): void;
removeAllEventListeners(type: string): void;
dispatchEvent(eventObj: string, target: Object): bool;
dispatchEvent(eventObj: Object, target: Object): bool;
hasEventListener(type: string): bool;
dispatchEvent(eventObj: string, target: Object): boolean;
dispatchEvent(eventObj: Object, target: Object): boolean;
hasEventListener(type: string): boolean;
toString(): string;
}
@@ -323,7 +323,7 @@ declare module createjs {
STROKE_JOINTS_MAP: string[];
// methods
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: bool): Graphics;
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): Graphics;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): Graphics;
beginBitmapFill(image: Object, repetition?: string, matrix?: Matrix2D): Graphics;
beginBitmapStroke(image: Object, repetition?: string): Graphics;
@@ -347,17 +347,17 @@ declare module createjs {
drawRoundRectComplex(x: number, y: number, width: number, height: number, radiusTL: number, radiusTR: number, radiusBR: number, radisBL: number): Graphics;
endFill(): Graphics;
endStroke(): Graphics;
isEmpty(): bool;
isEmpty(): boolean;
static getHSL(hue: number, saturation: number, lightness: number, alpha?: number): string;
static getRGB(red: number, green: number, blue: number, alpha?: number): string;
lineTo(x: number, y: number): Graphics;
moveTo(x: number, y: number): Graphics;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): Graphics;
rect(x: number, y: number, width: number, height: number): Graphics;
setStrokeStyle(thickness: number, caps?: string, joints?: string, miter?: number, ignoreScale?: bool): Graphics; // caps and joints can be a string or number
setStrokeStyle(thickness: number, caps?: number, joints?: string, miter?: number, ignoreScale?: bool): Graphics;
setStrokeStyle(thickness: number, caps?: string, joints?: number, miter?: number, ignoreScale?: bool): Graphics;
setStrokeStyle(thickness: number, caps?: number, joints?: number, miter?: number, ignoreScale?: bool): Graphics;
setStrokeStyle(thickness: number, caps?: string, joints?: string, miter?: number, ignoreScale?: boolean): Graphics; // caps and joints can be a string or number
setStrokeStyle(thickness: number, caps?: number, joints?: string, miter?: number, ignoreScale?: boolean): Graphics;
setStrokeStyle(thickness: number, caps?: string, joints?: number, miter?: number, ignoreScale?: boolean): Graphics;
setStrokeStyle(thickness: number, caps?: number, joints?: number, miter?: number, ignoreScale?: boolean): Graphics;
toString(): string;
}
@@ -401,7 +401,7 @@ declare module createjs {
decompose(target: Object): Matrix2D;
identity(): Matrix2D;
invert(): Matrix2D;
isIdentity(): bool;
isIdentity(): boolean;
prepend(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix2D;
prependMatrix(matrix: Matrix2D): Matrix2D;
prependProperties(alpha: number, shadow: Shadow, compositeOperation: string): Matrix2D;
@@ -419,7 +419,7 @@ declare module createjs {
// properties
nativeEvent: NativeMouseEvent;
pointerID: number;
primaryPointer: bool;
primaryPointer: boolean;
rawX: number;
rawY: number;
stageX: number;
@@ -433,18 +433,18 @@ declare module createjs {
toString(): string;
// EventDispatcher mixins
addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
addEventListener(type: string, listener: (eventObj: Object) => boolean): Function;
addEventListener(type: string, listener: (eventObj: Object) => void ): Function;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): Object;
addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): Object;
removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
removeEventListener(type: string, listener: (eventObj: Object) => boolean): void;
removeEventListener(type: string, listener: (eventObj: Object) => void ): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): void;
removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): void;
removeAllEventListeners(type: string): void;
dispatchEvent(eventObj: string, target: Object): bool;
dispatchEvent(eventObj: Object, target: Object): bool;
hasEventListener(type: string): bool;
dispatchEvent(eventObj: string, target: Object): boolean;
dispatchEvent(eventObj: Object, target: Object): boolean;
hasEventListener(type: string): boolean;
// events
onMouseMove: (event: MouseEvent) => any;
@@ -454,13 +454,13 @@ declare module createjs {
export class MovieClip extends Container {
// properties
actionsEnabled: bool;
autoReset: bool;
actionsEnabled: boolean;
autoReset: boolean;
currentFrame: number;
static INDEPENDENT: string;
loop: bool;
loop: boolean;
mode: string;
paused: bool;
paused: boolean;
static SINGLE_FRAME: string;
startPosition: number;
static SYNCHED: string;
@@ -468,7 +468,7 @@ declare module createjs {
// methods
constructor (mode: string, startPosition: number, loop: bool, labels: Object);
clone(recursive?: bool): MovieClip;
clone(recursive?: boolean): MovieClip;
gotoAndPlay(positionOrLabel: string): void;
gotoAndPlay(positionOrLabel: number): void;
gotoAndStop(positionOrLabel: string): void;
@@ -525,7 +525,7 @@ declare module createjs {
// methods
constructor (graphics?: Graphics);
clone(recursive?: bool): Shape;
clone(recursive?: boolean): Shape;
}
@@ -539,7 +539,7 @@ declare module createjs {
export class SpriteSheet {
// properties
complete: bool;
complete: boolean;
// methods
constructor (data: Object);
@@ -582,7 +582,7 @@ declare module createjs {
export class SpriteSheetUtils {
static addFlippedFrames(spriteSheet: SpriteSheet, horizontal?: bool, vertical?: bool, both?: bool): void;
static addFlippedFrames(spriteSheet: SpriteSheet, horizontal?: bool, vertical?: bool, both?: boolean): void;
static extractFrame(spriteSheet: SpriteSheet, frame: number): HTMLImageElement;
static extractFrame(spriteSheet: SpriteSheet, animationName: string): HTMLImageElement;
static flip(spriteSheet: HTMLImageElement, flipData: Object): void;
@@ -592,13 +592,13 @@ declare module createjs {
export class Stage extends Container {
// properties
autoClear: bool;
autoClear: boolean;
canvas: HTMLCanvasElement;
mouseInBounds: bool;
mouseInBounds: boolean;
mouseX: number;
mouseY: number;
snapToPixelEnabled: bool;
tickOnUpdate: bool;
snapToPixelEnabled: boolean;
tickOnUpdate: boolean;
new (): Stage;
new (canvas: HTMLElement): Stage;
@@ -607,7 +607,7 @@ declare module createjs {
constructor (canvas: HTMLCanvasElement);
clone(): Stage;
enableMouseOver(frequency: number): void;
enableDOMEvents(enable: bool): void;
enableDOMEvents(enable: boolean): void;
toDataURL(backgroundColor: string, mimeType: string): string;
update(): void;
clear(): void;
@@ -626,7 +626,7 @@ declare module createjs {
lineHeight: number;
lineWidth: number;
maxWidth: number;
outline: bool;
outline: boolean;
text: string;
textAlign: string;
textBaseline: string;
@@ -642,31 +642,31 @@ declare module createjs {
export class Ticker {
// properties
static useRAF: bool;
static useRAF: boolean;
// methods
static addListener(o: Object, pauseable?: bool): void;
static addListener(o: Object, pauseable?: boolean): void;
static getFPS(): number;
static getInterval(): number;
static getMeasuredFPS(ticks?: number): number;
static getPaused(): bool;
static getTicks(pauseable?: bool): number;
static getTime(pauseable: bool): number;
static getPaused(): boolean;
static getTicks(pauseable?: boolean): number;
static getTime(pauseable: boolean): number;
static init(): void;
static removeAllListeners(): void;
static removeListener(o: Object): void;
static setFPS(value: number): void;
static setInterval(interval: number): void;
static setPaused(value: bool): void;
static setPaused(value: boolean): void;
// EventDispatcher mixins
static addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
static addEventListener(type: string, listener: (eventObj: Object) => boolean): Function;
static addEventListener(type: string, listener: (eventObj: Object) => void): Function;
static addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): Object;
static addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): Object;
static addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): Object;
static removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
static removeEventListener(type: string, listener: (eventObj: Object) => boolean): void;
static removeEventListener(type: string, listener: (eventObj: Object) => void): void;
static removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => bool; }): void;
static removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }): void;
static removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }): void;
// events
@@ -678,7 +678,7 @@ declare module createjs {
// properties
target: Object;
type: string;
paused: bool;
paused: boolean;
delta: number;
time: number;
runTime : number;
@@ -688,8 +688,8 @@ declare module createjs {
export class Touch {
// methods
static disable(stage: Stage): void;
static enable(stage: Stage, singleTouch?: bool, allowDefault?: bool): bool;
static isSupported(): bool;
static enable(stage: Stage, singleTouch?: bool, allowDefault?: boolean): boolean;
static isSupported(): boolean;
}

58
ember/ember.d.ts vendored
View File

@@ -7,8 +7,8 @@
declare module Ember {
export class CoreObject {
isDestroyed: bool;
isDestroying: bool;
isDestroyed: boolean;
isDestroying: boolean;
destroy(): Object;
eachComputedProperty(callback: Function, binding: Object): void;
@@ -24,13 +24,13 @@ declare module Ember {
beginPropertyChanges(): Observable;
cacheFor(keyName: string): Object;
decrementProperty(keyName: string, increment: Object): Object;
detect(obj: Object): bool;
detect(obj: Object): boolean;
endPropertyChanges(): Observable;
get(key: string): Object;
getProperties(...list: string[]): any;
getProperties(list: string[]): any;
getWithDefault(keyName: string, defaultValue: Object): Object;
hasObserverFor(key: string): bool;
hasObserverFor(key: string): boolean;
incrementProperty(keyName: string, increment: Object): Object;
notifyPropertyChange(keyName: string): Observable;
propertyDidChange(keyName: string): Observable;
@@ -48,7 +48,7 @@ declare module Ember {
export interface Mixin {
apply(obj: Object): Object;
create(obj: Object): Object;
detect(obj: Object): bool;
detect(obj: Object): boolean;
extend(first: Object, second: Object): Object;
reopen(...arguments: any[]): Mixin;
}
@@ -61,14 +61,14 @@ declare module Ember {
export interface Enumerable extends Mixin {
// Fields
firstObject: Object;
hasEnumerableObservers: bool;
hasEnumerableObservers: boolean;
lastObject: Object;
nextObject: Object;
// Methods
addEnumerableObserver(target, opts);
compact(): any[];
contains(obj: Object): bool;
contains(obj: Object): boolean;
enumerableContentDidChange(removing: number, adding: number): Object;
enumerableContentDidChange(removing: Ember.Enumerable, adding: Ember.Enumerable): Object;
enumerableContentDidChange(start: Number, removing: number, adding: number): Object;
@@ -79,7 +79,7 @@ declare module Ember {
enumerableContentWillChange(start: Number, removing: number, adding: number): Ember.Enumerable;
enumerableContentWillChange(start: Number, removing: Ember.Enumerable, adding: Ember.Enumerable): Ember.Enumerable;
every(callback: Function, target?: Object): bool;
every(callback: Function, target?: Object): boolean;
everyProperty(key: string, value?: string): any[];
filter(callback: Function, target?: Object): any[];
filterProperty(key: string, value?: string): any[];
@@ -124,7 +124,7 @@ declare module Ember {
export class Binding {
static from();
static oneWay(path: string, flag?: bool);
static oneWay(path: string, flag?: boolean);
static to();
connect(obj: Object): Binding;
@@ -136,7 +136,7 @@ declare module Ember {
}
export interface ComputedProperty {
cacheable(aFlag?: bool): ComputedProperty;
cacheable(aFlag?: boolean): ComputedProperty;
meta(hash: any): ComputedProperty;
property(path: string): ComputedProperty;
volatile(): ComputedProperty;
@@ -164,7 +164,7 @@ declare module Ember {
getProperties(...list: string[]): any;
getProperties(list: any[]): any;
getWithDefault(keyName: string, defaultValue: Object): Object;
hasObserverFor(key: string): bool;
hasObserverFor(key: string): boolean;
incrementProperty(keyName: string, increment: Object): Object;
insertItemSorted(item);
notifyPropertyChange(keyName: string): Ember.Observable;
@@ -187,16 +187,16 @@ declare module Ember {
interface EmberStatic {
// Statics
CP_DEFAULT_CACHEABLE: bool;
CP_DEFAULT_CACHEABLE: boolean;
ENV: Object;
EXTEND_PROTOTYPES: bool;
LOG_BINDINGS: bool;
LOG_STACKTRACE_ON_DEPRECATION: bool;
EXTEND_PROTOTYPES: boolean;
LOG_BINDINGS: boolean;
LOG_STACKTRACE_ON_DEPRECATION: boolean;
META_KEY: string;
SHIM_ES5: bool;
SHIM_ES5: boolean;
StringS: Object;
VERSION: string;
VIEW_PRESERVES_CONTEXT: bool;
VIEW_PRESERVES_CONTEXT: boolean;
Application: Ember.Application;
View: Ember.View;
@@ -209,7 +209,7 @@ interface EmberStatic {
addListener(obj: Object, eventName: string, target: Object, method: Function);
addObserver(obj: Object, path: string, target: Object, method: Function);
alias(methodName: string);
assert(desc: string, test: bool);
assert(desc: string, test: boolean);
beforeObserver(func: Function);
beginPropertyChanges();
bind(obj: Object, to: string, from: string): Ember.Binding;
@@ -218,25 +218,25 @@ interface EmberStatic {
changeProperties(cb: Function, binding?: Ember.Binding);
compare(first: Object, second: Object): number;
computed(func: Function): Ember.ComputedProperty;
copy(obj: Object, deep: bool): Object;
copy(obj: Object, deep: boolean): Object;
create(obj: Object, props: any);
deferEvent(obj: Object, eventName: string, param: any);
deprecate(message: string, test?: bool);
deprecate(message: string, test?: boolean);
deprecateFunc(message: string, func: Function);
destroy(obj: Object): void;
empty(obj: Object): bool;
empty(obj: Object): boolean;
endPropertyChanges();
finishChains(obj: Object);
get(obj: Object, keyName: string): Object;
getMeta(obj: Object, property: any);
getWithDefault(root, key, defaultValue);
hasListeners(obj: Object, eventName: string): bool;
hasListeners(obj: Object, eventName: string): boolean;
immediateObserver();
inspect(obj: Object): string;
isArray(obj?: any): bool;
isEqual(a: Object, b: Object): bool;
isGlobalPath(path: string): bool;
isWatching(obj: Object, key): bool;
isArray(obj?: any): boolean;
isEqual(a: Object, b: Object): boolean;
isGlobalPath(path: string): boolean;
isWatching(obj: Object, key): boolean;
keys(obj: Object): any[];
listenersFor(obj: Object, eventName: string): any[];
makeArray(obj: Object): any[];
@@ -244,7 +244,7 @@ interface EmberStatic {
Map();
MapWithDefault(options);
mixin(obj: Object);
none(obj: Object): bool;
none(obj: Object): boolean;
observer(func: Function);
oneWay(obj: Object, to, from);
onLoad(name: string, callback: Function);
@@ -264,10 +264,10 @@ interface EmberStatic {
setMeta(obj: Object, property, value);
setProperties(self, hash);
toString(): string;
tryInvoke(obj: Object, methodName: string, args: any[]): bool;
tryInvoke(obj: Object, methodName: string, args: any[]): boolean;
trySet(root, path, value);
typeOf(item): string;
warn(message: string, test: bool);
warn(message: string, test: boolean);
watchedEvents(obj: Object);
// Other public members not listed in API Doc

View File

@@ -8,9 +8,9 @@ interface EpicEditorOptions {
container?: any;
textarea?: any;
basePath?: string;
clientSideStorage?: bool;
clientSideStorage?: boolean;
localStorageName?: string;
useNativeFullsreen?: bool;
useNativeFullsreen?: boolean;
parser?: any;
file?: {
name: string;
@@ -22,7 +22,7 @@ interface EpicEditorOptions {
preview: string;
editor: string;
};
focusOnLoad?: bool;
focusOnLoad?: boolean;
shortcut?: {
modifier: number;
fullscreen: number;
@@ -42,7 +42,7 @@ declare class EpicEditor {
load(callback?: Function): EpicEditor;
unload(callback?: Function): EpicEditor;
getElement(element: string): any;
is(state: string): bool;
is(state: string): boolean;
open(filename: string);
importFile(filename?: string, content?: string): void;
exportFile(filename?: string, type?: string): any;

4088
extjs/ExtJS-4.2.0.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -67,11 +67,11 @@ Ext.define("MyApp.view.CompanyGridPanel", <Ext.grid.IPanel>{
function test_create() {
var gridPanel: MyApp.view.CompanyGridPanel = Ext.create("MyApp.view.CompanyGridPanel");
var isVisible: bool = gridPanel.isVisible();
var isVisible: boolean = gridPanel.isVisible();
gridPanel.setWidth(500);
var items: Ext.IComponent[] = gridPanel.items;
var columns: Ext.grid.IColumn[] = gridPanel.columns;
var isArray: bool = Ext.isArray(columns);
var isArray: boolean = Ext.isArray(columns);
}
function test_events() {

154
fabricjs/fabricjs.d.ts vendored
View File

@@ -22,8 +22,8 @@ declare module fabric {
function parseTransformAttribute(attributeValue: string);
function warn(values);
var isLikelyNode: bool;
var isTouchSupported: bool;
var isLikelyNode: boolean;
var isTouchSupported: boolean;
export interface IObservable {
observe(eventCollection: IEventList);
@@ -56,37 +56,37 @@ declare module fabric {
cornersize?: number;
fill?: string;
fillRule?: string;
flipX?: bool;
flipY?: bool;
hasBorders?: bool;
hasControls?: bool;
hasRotatingPoint?: bool;
flipX?: boolean;
flipY?: boolean;
hasBorders?: boolean;
hasControls?: boolean;
hasRotatingPoint?: boolean;
height?: number;
includeDefaultValues?: bool;
includeDefaultValues?: boolean;
left?: number;
lockMovementX?: bool;
lockMovementY?: bool;
lockScalingX?: bool;
lockScalingY?: bool;
lockUniScaling?: bool;
lockRotation?: bool;
lockMovementX?: boolean;
lockMovementY?: boolean;
lockScalingX?: boolean;
lockScalingY?: boolean;
lockUniScaling?: boolean;
lockRotation?: boolean;
opacity?: number;
originX?: string;
originY?: string;
overlayFill?: string;
padding?: number;
perPixelTargetFind?: bool;
perPixelTargetFind?: boolean;
rotatingPointOffset?: number;
scaleX?: number;
scaleY?: number;
selectable?: bool;
selectable?: boolean;
stateProperties?: any[];
stroke?: string;
strokeDashArray?: any[];
strokeWidth?: number;
top?: number;
transformMatrix?: any[];
transparentCorners?: bool;
transparentCorners?: boolean;
type?: string;
width?: number;
}
@@ -176,7 +176,7 @@ declare module fabric {
initialize(options: any);
initialize(text: string, options: any): IText;
toString(): string;
render(ctx: CanvasRenderingContext2D, noTransform: bool);
render(ctx: CanvasRenderingContext2D, noTransform: boolean);
toObject(propertiesToInclude: any[]): IObject;
toSVG(): string;
setColor(value: string): IText;
@@ -195,7 +195,7 @@ declare module fabric {
initialize(options: any): any;
toObject(propertiesToInclude: any[]): any;
toSVG(): string;
render(ctx: CanvasRenderingContext2D, noTransform: bool);
render(ctx: CanvasRenderingContext2D, noTransform: boolean);
complexity(): number;
}
@@ -225,13 +225,13 @@ declare module fabric {
export interface IObject extends IObservable {
// constraint properties
lockMovementX: bool;
lockMovementY: bool;
lockScalingX: bool;
lockScalingY: bool;
lockScaling: bool;
lockUniScaling: bool;
lockRotation: bool;
lockMovementX: boolean;
lockMovementY: boolean;
lockScalingX: boolean;
lockScalingY: boolean;
lockScaling: boolean;
lockUniScaling: boolean;
lockRotation: boolean;
getCurrentWidth(): number;
getCurrentHeight(): number;
@@ -265,24 +265,24 @@ declare module fabric {
getFillRule(): string;
setFillRule(value: string): IObject;
flipX: bool;
getFlipX(): bool;
setFlipX(value: bool): IObject;
flipX: boolean;
getFlipX(): boolean;
setFlipX(value: boolean): IObject;
flipY: bool;
getFlipY(): bool;
setFlipY(value: bool): IObject;
flipY: boolean;
getFlipY(): boolean;
setFlipY(value: boolean): IObject;
hasBorders: bool;
hasBorders: boolean;
hasControls: bool;
hasRotatingPoint: bool;
hasControls: boolean;
hasRotatingPoint: boolean;
height: number;
getHeight(): number;
setHeight(value: number): IObject;
includeDefaultValues: bool;
includeDefaultValues: boolean;
left: number;
getLeft(): number;
@@ -297,7 +297,7 @@ declare module fabric {
setOverlayFill(value: string): IObject;
padding: number;
perPixelTargetFind: bool;
perPixelTargetFind: boolean;
rotatingPointOffset: number;
scaleX: number;
@@ -308,7 +308,7 @@ declare module fabric {
getScaleY(): number;
setScaleY(value: number): IObject;
selectable: bool;
selectable: boolean;
stateProperties: any[];
stroke: string;
strokeDashArray: any[];
@@ -319,7 +319,7 @@ declare module fabric {
setTop(value: number): IObject;
transformMatrix: any[];
transparentCorners: bool;
transparentCorners: boolean;
type: string;
width: number;
@@ -342,16 +342,16 @@ declare module fabric {
getBoundingRectWidth(): number;
getSvgStyles(): string;
getSvgTransform(): string;
hasStateChanged(): bool;
hasStateChanged(): boolean;
initialize(options: any);
intersectsWithObject(other: IObject): bool;
intersectsWithRect(selectionTL: any, selectionBR: any): bool;
isActive(): bool;
isContainedWithinObject(other: IObject): bool;
isContainedWithinRect(selectionTL: any, selectionBR: any): bool;
isType(type: string): bool;
intersectsWithObject(other: IObject): boolean;
intersectsWithRect(selectionTL: any, selectionBR: any): boolean;
isActive(): boolean;
isContainedWithinObject(other: IObject): boolean;
isContainedWithinRect(selectionTL: any, selectionBR: any): boolean;
isType(type: string): boolean;
remove(): IObject;
render(ctx: CanvasRenderingContext2D, noTransform: bool);
render(ctx: CanvasRenderingContext2D, noTransform: boolean);
rotate(value: number): IObject;
saveState(): IObject;
scale(value: number): IObject;
@@ -362,7 +362,7 @@ declare module fabric {
set (properties: IObjectOptions): IObject;
set (name: string, value: any): IObject;
setActive(active: bool): IObject;
setActive(active: boolean): IObject;
setCoords();
setGradientFill(options);
setOptions(options: any);
@@ -384,11 +384,11 @@ declare module fabric {
add(object): IGroup;
addWithUpdate(object): IGroup;
complexity(): number;
contains(object): bool;
containsPoint(point): bool;
contains(object): boolean;
containsPoint(point): boolean;
destroy(): IGroup;
getObjects(): IObject[];
hasMoved(): bool;
hasMoved(): boolean;
initialize(options: any);
initialize(objects, options): any;
item(index): IObject;
@@ -437,7 +437,7 @@ declare module fabric {
initialize(options: any);
initialize(element: string, options: any);
initialize(element: HTMLImageElement, options: any);
render(ctx: CanvasRenderingContext2D, noTransform: bool);
render(ctx: CanvasRenderingContext2D, noTransform: boolean);
setElement(element): IImage;
toObject(propertiesToInclude): any;
tostring(): string;
@@ -461,7 +461,7 @@ declare module fabric {
complexity(): number;
initialize(options: any);
initialize(path, options);
render(ctx: CanvasRenderingContext2D, noTransform: bool);
render(ctx: CanvasRenderingContext2D, noTransform: boolean);
toDatalessObject(propertiesToInclude): any;
toObject(propertiesToInclude): any;
tostring(): string;
@@ -488,7 +488,7 @@ declare module fabric {
complexity(): number;
initialize(options: any);
initialize(paths, options);
isSameColor(): bool;
isSameColor(): boolean;
render(ctx: CanvasRenderingContext2D);
toDatalessObject(propertiesToInclude): any;
toGrayscale(): IPathGroup;
@@ -505,17 +505,17 @@ declare module fabric {
backgroundImageOpacity: number;
backgroundImageStretch: number;
clipTo(clipFunction: (context: CanvasRenderingContext2D) => void );
controlsAboveOverlay: bool;
includeDefaultValues: bool;
controlsAboveOverlay: boolean;
includeDefaultValues: boolean;
overlayImage: string;
overlayImageLeft: number;
overlayImageTop: number;
renderOnAddition: bool;
stateful: bool;
renderOnAddition: boolean;
stateful: boolean;
// static
EMPTY_JSON: string;
supports(methodName: string): bool;
supports(methodName: string): boolean;
// methods
add(...object: IObject[]): ICanvas;
@@ -538,12 +538,12 @@ declare module fabric {
getHeight(): number;
getObjects(): IObject[];
getWidth(): number;
insertAt(object: IObject, index: number, nonSplicing: bool): ICanvas;
isEmpty(): bool;
insertAt(object: IObject, index: number, nonSplicing: boolean): ICanvas;
isEmpty(): boolean;
item(index: number): IObject;
onBeforeScaleRotate(target: IObject);
remove(object: IObject): IObject;
renderAll(allOnTop?: bool): ICanvas;
renderAll(allOnTop?: boolean): ICanvas;
renderTop(): ICanvas;
sendBackwards(object: IObject): ICanvas;
@@ -578,11 +578,11 @@ declare module fabric {
freeDrawingColor: string;
freeDrawingLineWidth: number;
hoverCursor: string;
interactive: bool;
interactive: boolean;
moveCursor: string;
perPixelTargetFind: bool;
perPixelTargetFind: boolean;
rotationCursor: string;
selection: bool;
selection: boolean;
selectionBorderColor: string;
selectionColor: string;
selectionDashArray: number[];
@@ -590,13 +590,13 @@ declare module fabric {
targetFindTolerance: number;
// methods
containsPoint(e: Event, target: IObject): bool;
containsPoint(e: Event, target: IObject): boolean;
deactivateAll(): ICanvas;
deactivateAllWithDispatch(): ICanvas;
discardActiveGroup(): ICanvas;
discardActiveObject(): ICanvas;
drawDashedLine(ctx: CanvasRenderingContext2D, x: number, y: number, x2: number, y2: number, dashArray: number[]): ICanvas;
findTarget(e: MouseEvent, skipGroup: bool): ICanvas;
findTarget(e: MouseEvent, skipGroup: boolean): ICanvas;
getActiveGroup(): IGroup;
getActiveObject(): IObject;
getPointer(e): { x: number; y: number; };
@@ -636,11 +636,11 @@ declare module fabric {
freeDrawingColor?: string;
freeDrawingLineWidth?: number;
hoverCursor?: string;
interactive?: bool;
interactive?: boolean;
moveCursor?: string;
perPixelTargetFind?: bool;
perPixelTargetFind?: boolean;
rotationCursor?: string;
selection?: bool;
selection?: boolean;
selectionBorderColor?: string;
selectionColor?: string;
selectionDashArray?: number[];
@@ -651,13 +651,13 @@ declare module fabric {
backgroundImage?: string;
backgroundImageOpacity?: number;
backgroundImageStretch?: number;
controlsAboveOverlay?: bool;
includeDefaultValues?: bool;
controlsAboveOverlay?: boolean;
includeDefaultValues?: boolean;
overlayImage?: string;
overlayImageLeft?: number;
overlayImageTop?: number;
renderOnAddition?: bool;
stateful?: bool;
renderOnAddition?: boolean;
stateful?: boolean;
}
export interface IRectOptions extends IObjectOptions {
@@ -686,7 +686,7 @@ declare module fabric {
new (element: string, options?: ICanvasOptions): ICanvas;
EMPTY_JSON: string;
supports(methodName: string): bool;
supports(methodName: string): boolean;
prototype: any;
}
@@ -695,7 +695,7 @@ declare module fabric {
new (element: string, options?: ICanvasOptions): ICanvas;
EMPTY_JSON: string;
supports(methodName: string): bool;
supports(methodName: string): boolean;
prototype: any;
}
@@ -833,7 +833,7 @@ declare module fabric {
});
createClass(parent, properties);
degreesToRadians(degrees: number): number;
falseFunction(): () => bool;
falseFunction(): () => boolean;
getById(id: HTMLElement): HTMLElement;
getById(id: string): HTMLElement;
getElementOffset(element): { left: number; top: number; };

View File

@@ -15,33 +15,33 @@ interface FancyboxOptions {
minHeight?: number;
maxWidth?: number;
maxHeight?: number;
autoSize?: bool;
autoHeight?: bool;
autoWidth?: bool;
autoResize?: bool;
autoCenter?: bool;
fitToView?: bool;
aspectRatio?: bool;
autoSize?: boolean;
autoHeight?: boolean;
autoWidth?: boolean;
autoResize?: boolean;
autoCenter?: boolean;
fitToView?: boolean;
aspectRatio?: boolean;
topRatio?: number;
leftRatio?: number;
scrolling?: string;
wrapCSS?: string;
arrows?: bool;
closeBtn?: bool;
closeClick?: bool;
nextClick?: bool;
mouseWheel?: bool;
autoPlay?: bool;
arrows?: boolean;
closeBtn?: boolean;
closeClick?: boolean;
nextClick?: boolean;
mouseWheel?: boolean;
autoPlay?: boolean;
playSpeed?: number;
preload?: number;
modal?: bool;
loop?: bool;
modal?: boolean;
loop?: boolean;
ajax?: any;
iframe?: any;
swf?: any;
keys?: any;
direction?: any;
scrollOutside?: bool;
scrollOutside?: boolean;
index?: number;
type?: string;
href?: string;
@@ -64,8 +64,8 @@ interface FancyboxOptions {
nextEasing?: string;
prevEasing?: string;
openOpacity?: bool;
closeOpacity?: bool;
openOpacity?: boolean;
closeOpacity?: boolean;
openMethod?: string;
closeMethod?: string;
@@ -78,7 +78,7 @@ interface FancyboxOptions {
interface FancyboxMethods {
open(group?: any[], options?: FancyboxOptions);
cancel();
close(force?: bool);
close(force?: boolean);
play();
next();
prev();

View File

@@ -11,9 +11,9 @@ interface IFirebaseAuthResult {
interface IFirebaseDataSnapshot {
val(): any;
child(): IFirebaseDataSnapshot;
forEach(childAction: (childSnapshot: IFirebaseDataSnapshot) => bool): bool;
hasChild(childPath: string): bool;
hasChildren(): bool;
forEach(childAction: (childSnapshot: IFirebaseDataSnapshot) => boolean): boolean;
hasChild(childPath: string): boolean;
hasChildren(): boolean;
name(): string;
numChildren(): number;
ref(): Firebase;
@@ -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?: bool): void;
transaction(updateFunction: (currentData: any)=> any, onComplete?: (error: any, committed: bool, 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

@@ -11,9 +11,9 @@ interface SliderObject { //Object: The slider element itself
count: number; //Int: The total number of slides in the slider
currentSlide: number; //Int: The slide currently being shown
animatingTo: number; //Int: Useful in .before(), the slide currently animating to
animating: bool; //Boolean: is slider animating?
atEnd: bool; //Boolean: is the slider at either end?
manualPause: bool; //Boolean: force slider to stay paused during pauseOnHover event
animating: boolean; //Boolean: is slider animating?
atEnd: boolean; //Boolean: is the slider at either end?
manualPause: boolean; //Boolean: force slider to stay paused during pauseOnHover event
controlNav: Object; //Object: The slider controlNav
directionNav: Object; //Object: The slider directionNav
controlsContainer: Object; //Object: The controlsContainer element of the slider
@@ -31,34 +31,34 @@ interface FlexSliderOptions {
animation?: string; //String: Select your animation type, "fade" or "slide"
easing?: string; //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
direction?: string; //String: Select the sliding direction, "horizontal" or "vertical"
reverse?: bool; //{NEW} Boolean: Reverse the animation direction
animationLoop?: bool; //Boolean: Should the animation loop? If bool; directionNav will received "disable" classes at either end
smoothHeight?: bool; //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
reverse?: boolean; //{NEW} Boolean: Reverse the animation direction
animationLoop?: boolean; //Boolean: Should the animation loop? If boolean; directionNav will received "disable" classes at either end
smoothHeight?: boolean; //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
startAt?: number; //Integer: The slide that the slider should start on. Array notation (0 = first slide)
slideshow?: bool; //Boolean: Animate slider automatically
slideshow?: boolean; //Boolean: Animate slider automatically
slideshowSpeed?: number; //Integer: Set the speed of the slideshow cycling, in milliseconds
animationSpeed?: number; //Integer: Set the speed of animations, in milliseconds
initDelay?: number; //{NEW} Integer: Set an initialization delay, in milliseconds
randomize?: bool; //Boolean: Randomize slide order
randomize?: boolean; //Boolean: Randomize slide order
// Usability features
pauseOnAction?: bool; //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
pauseOnHover?: bool; //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
useCSS?: bool; //{NEW} Boolean: Slider will use CSS3 transitions if available
touch?: bool; //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
video?: bool; //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
pauseOnAction?: boolean; //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
pauseOnHover?: boolean; //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
useCSS?: boolean; //{NEW} Boolean: Slider will use CSS3 transitions if available
touch?: boolean; //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
video?: boolean; //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
// Primary Controls
controlNav?: any; //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
directionNav?: bool; //Boolean: Create navigation for previous/next navigation? (true/false)
directionNav?: boolean; //Boolean: Create navigation for previous/next navigation? (true/false)
prevText?: string; //String: Set the text for the "previous" directionNav item
nextText?: string; //String: Set the text for the "next" directionNav item
// Secondary Navigation
keyboard?: bool; //Boolean: Allow slider navigating via keyboard left/right keys
multipleKeyboard?: bool; //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
mousewheel?: bool; //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
pausePlay?: bool; //Boolean: Create pause/play dynamic element
keyboard?: boolean; //Boolean: Allow slider navigating via keyboard left/right keys
multipleKeyboard?: boolean; //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
mousewheel?: boolean; //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
pausePlay?: boolean; //Boolean: Create pause/play dynamic element
pauseText?: string; //String: Set the text for the "pause" pausePlay item
playText?: string; //String: Set the text for the "play" pausePlay item

34
flot/jquery.flot.d.ts vendored
View File

@@ -38,8 +38,8 @@ declare module jquery.flot {
}
interface gridOptions {
show?: bool;
aboveData?: bool;
show?: boolean;
aboveData?: boolean;
color?: any; // color
backgroundColor?: any; //color/gradient or null
margin?: any; // number or margin object
@@ -49,9 +49,9 @@ declare module jquery.flot {
borderWidth: number;
borderColor?: any; // color or null
minBorderMargin?: number; // or null
clickable?: bool;
hoverable?: bool;
autoHighlight?: bool;
clickable?: boolean;
hoverable?: boolean;
autoHighlight?: boolean;
mouseActiveRadius?: number;
tickColor?: any;
markingsColor?: any;
@@ -59,7 +59,7 @@ declare module jquery.flot {
}
interface legendOptions {
show?: bool;
show?: boolean;
labelFormatter?: (label: string, series: any) => string; // null or (fn: string, series object -> string)
labelBoxBorderColor?: any; //color
noColumns?: number;
@@ -79,8 +79,8 @@ declare module jquery.flot {
points?: pointsOptions;
xaxis?: number;
yaxis?: number;
clickable?: bool;
hoverable?: bool;
clickable?: boolean;
hoverable?: boolean;
shadowSize?: number;
highlightColor?: any;
}
@@ -90,7 +90,7 @@ declare module jquery.flot {
}
interface axisOptions {
show?: bool; // null or true/false
show?: boolean; // null or true/false
position?: string; // "bottom" or "top" or "left" or "right"
color?: any; // null or color spec
@@ -112,7 +112,7 @@ declare module jquery.flot {
labelWidth?: number;
labelHeight?: number;
reserveSpace?: bool;
reserveSpace?: boolean;
tickLength?: number;
@@ -120,20 +120,20 @@ declare module jquery.flot {
}
interface seriesTypeBase {
show?: bool;
show?: boolean;
lineWidth?: number;
fill?: any; //boolean or number
fillColor?: any; //null or color/gradient
}
interface linesOptions extends seriesTypeBase {
steps?: bool;
steps?: boolean;
}
interface barsOptions extends seriesTypeBase {
barWidth?: number;
align?: string;
horizontal?: bool;
horizontal?: boolean;
}
interface pointsOptions extends seriesTypeBase {
@@ -161,10 +161,10 @@ declare module jquery.flot {
}
interface datapointFormat {
x?: bool;
y?: bool;
number: bool;
required: bool;
x?: boolean;
y?: boolean;
number: boolean;
required: boolean;
defaultValue?: number;
}

View File

@@ -9,27 +9,27 @@
interface OrbitOptions {
animation?: string;
animationSpeed?: number;
timer?: bool;
resetTimerOnClick?: bool;
timer?: boolean;
resetTimerOnClick?: boolean;
advanceSpeed?: number;
pauseOnHover?: bool;
startClockOnMouseOut?: bool;
pauseOnHover?: boolean;
startClockOnMouseOut?: boolean;
startClockOnMouseOutAfter?: number;
directionalNav?: number;
captions?: number;
captionAnimation?: string;
captionAnimationSpeed?: number;
bullets?: bool;
bulletThumbs?: bool;
bullets?: boolean;
bulletThumbs?: boolean;
bulletThumbLocation?: string;
afterSlideChange?: () => void;
fluid?: bool;
fluid?: boolean;
}
interface RevealOptions {
animation?: string;
animationSpeed?: number;
closeOnBackgroundClick?: bool;
closeOnBackgroundClick?: boolean;
dismissModalClass?: string;
/**
* The class of the modals background.
@@ -65,14 +65,14 @@ interface JoyrideOptions {
nubPosition?: string;
scrollSpeed?: number;
timer?: number;
startTimerOnClick?: bool;
nextButton?: bool;
startTimerOnClick?: boolean;
nextButton?: boolean;
tipAnimation?: string;
pauseAfter?: number[];
tipAnimationFadeSpeed?: number;
cookieMonster?: bool;
cookieMonster?: boolean;
cookieName?: string;
cookieDomain?: bool;
cookieDomain?: boolean;
tipContainer?: string;
postRideCallback?: () => void;
postStepCallback?: () => void;

View File

@@ -9,10 +9,10 @@ interface PlaygroundOptions{
height?: number;
width?: number;
refreshRate?: number;
keyTracker?: bool;
mouseTracker?: bool;
keyTracker?: boolean;
mouseTracker?: boolean;
position?: string;
disableCollision?: bool;
disableCollision?: boolean;
}
interface Coordinate3D{
@@ -108,40 +108,40 @@ interface JQuery{
registerCallback(callback: () => void , rate: number): JQuery;
registerCallback(callback: () => number , rate: number): JQuery;
registerCallback(callback: () => bool , rate: number): JQuery;
registerCallback(callback: () => boolean , rate: number): JQuery;
clearScenegraph(): JQuery;
clearAll(clearCallbacks?: bool): JQuery;
clearAll(clearCallbacks?: boolean): JQuery;
loadCallback(callback: (percent: number) => void ): JQuery;
rotate(angle: number, relative?: bool): JQuery;
scale(ratio: number, relative?: bool): JQuery;
flipv(flip?: bool): JQuery;
fliph(flip?: bool): JQuery;
rotate(angle: number, relative?: boolean): JQuery;
scale(ratio: number, relative?: boolean): JQuery;
flipv(flip?: boolean): JQuery;
fliph(flip?: boolean): JQuery;
xyz(x: number, y: number, z: number, relative?: bool): JQuery;
xyz(x: number, y: number, z: number, relative?: boolean): JQuery;
xyz(): Coordinate3D;
xy(x: number, y: number, relative?: bool): JQuery;
xy(x: number, y: number, relative?: boolean): JQuery;
xy(): Coordinate3D;
x(value: number, relative?: bool): JQuery;
x(value: number, relative?: boolean): JQuery;
x(): number;
y(value: number, relative?: bool): JQuery;
y(value: number, relative?: boolean): JQuery;
y(): number;
z(value: number, relative?: bool): JQuery;
z(value: number, relative?: boolean): JQuery;
z(): number;
wh(width: number, height: number, relative?: bool): JQuery;
wh(width: number, height: number, relative?: boolean): JQuery;
wh(): Size;
w(value: number, relative?: bool): JQuery;
w(value: number, relative?: boolean): JQuery;
w(): number;
h(value: number, relative?: bool): JQuery;
h(value: number, relative?: boolean): JQuery;
h(): number;
addSprite(name: string, options: SpriteOptions): JQuery;

View File

@@ -12,14 +12,14 @@ interface GlDatePickerOffset {
interface GlDatePickerDate {
date: Date;
repeatMonth?: bool;
repeatYear?: bool;
repeatMonth?: boolean;
repeatYear?: boolean;
}
interface GlDatePickerDateRange {
from: Date;
to?: Date;
repeatYear?: bool;
repeatYear?: boolean;
}
interface GlDatePickerSpecialDate extends GlDatePickerDate {
@@ -32,10 +32,10 @@ interface GlDatePickerOptions {
zIndex?: number;
borderSize?: number;
calendarOffset?: GlDatePickerOffset;
showAlways?: bool;
hideOnClick?: bool;
allowMonthSelect?: bool;
allowYearSelect?: bool;
showAlways?: boolean;
hideOnClick?: boolean;
allowMonthSelect?: boolean;
allowYearSelect?: boolean;
todayDate?: Date;
selectedDate?: Date;
prevArrow?: string;
@@ -65,5 +65,5 @@ interface GlDatePicker {
interface JQuery {
glDatePicker(options?: GlDatePickerOptions): JQuery;
glDatePicker(ret: bool): GlDatePicker;
glDatePicker(ret: boolean): GlDatePicker;
}

View File

@@ -10,7 +10,7 @@ declare class Tracker {
_getVersion(): string;
_getVisitorCustomVar(index: number); string;
_setAccount(): string;
_setCustomVar(index: number, name: string, value: string, opt_scope?: number): bool;
_setCustomVar(index: number, name: string, value: string, opt_scope?: number): boolean;
_setSampleRate(newRate: string): void;
_setSessionCookieTimeout(cookieTimeoutMillis: number): void;
_setSiteSpeedSampleRate(sampleRate: number): void;
@@ -33,7 +33,7 @@ interface GoogleAnalyticsTracker {
interface GoogleAnalytics {
type: string;
src: string;
async: bool;
async: boolean;
}
declare var ga: GoogleAnalytics;

View File

@@ -66,7 +66,7 @@ interface MediaContent {
fileSize: number;
type: string;
medium: string;
isDefault: bool;
isDefault: boolean;
expression: string;
bitrate: number;
framerate: number;

View File

@@ -2,7 +2,7 @@
/// <reference path="google.geolocation.d.ts" />
//determine if the handset has client side geo location capabilities
var isInit: bool = geo_position_js.init();
var isInit: boolean = geo_position_js.init();
if(isInit){
geo_position_js.getCurrentPosition(success_callback, error_callback);
} else {

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface GeolocationStatic {
init(): bool;
init(): boolean;
getCurrentPosition(success: (position: Position) => void, error?: (positionError: PositionError) => void, opts?: PositionOptions): void;
showMap(latitude: number, longitude: number): void;
}

View File

@@ -28,7 +28,7 @@ declare module google.maps {
export class MVCObject {
constructor ();
addListener(eventName: string, handler: (...args: any[]) => void): MapsEventListener;
bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: bool): void;
bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: boolean): void;
changed(key: string): void;
get(key: string): any;
notify(key: string): void;
@@ -83,37 +83,37 @@ declare module google.maps {
export interface MapOptions {
backgroundColor?: string;
center?: LatLng;
disableDefaultUI?: bool;
disableDoubleClickZoom?: bool;
draggable?: bool;
disableDefaultUI?: boolean;
disableDoubleClickZoom?: boolean;
draggable?: boolean;
draggableCursor?: string;
draggingCursor?: string;
heading?: number;
keyboardShortcuts?: bool;
mapMaker?: bool;
mapTypeControl?: bool;
keyboardShortcuts?: boolean;
mapMaker?: boolean;
mapTypeControl?: boolean;
mapTypeControlOptions?: MapTypeControlOptions;
navigationControl?: bool;
navigationControl?: boolean;
navigationControlOptions?: NavigationControlOptions;
mapTypeId?: MapTypeId;
maxZoom?: number;
minZoom?: number;
noClear?: bool;
overviewMapControl?: bool;
noClear?: boolean;
overviewMapControl?: boolean;
overviewMapControlOptions?: OverviewMapControlOptions;
panControl?: bool;
panControl?: boolean;
panControlOptions?: PanControlOptions;
rotateControl?: bool;
rotateControl?: boolean;
rotateControlOptions?: RotateControlOptions;
scaleControl?: bool;
scaleControl?: boolean;
scaleControlOptions?: ScaleControlOptions;
scrollwheel?: bool;
streetView?: bool;
scrollwheel?: boolean;
streetView?: boolean;
streetViewControlOptions?: StreetViewControlOptions;
styles?: MapTypeStyle[];
tilt?: number;
zoom?: number;
zoomControl?: bool;
zoomControl?: boolean;
zoomControlOptions?: ZoomControlOptions;
}
@@ -138,7 +138,7 @@ declare module google.maps {
}
export interface OverviewMapControlOptions {
opened?: bool;
opened?: boolean;
}
export interface PanControlOptions {
@@ -205,10 +205,10 @@ declare module google.maps {
static MAX_ZINDEX: number;
constructor (opts?: MarkerOptions);
getAnimation(): Animation;
getClickable(): bool;
getClickable(): boolean;
getCursor(): string;
getDraggable(): bool;
getFlat(): bool;
getDraggable(): boolean;
getFlat(): boolean;
getIcon(): MarkerImage;
getMap(): Map;
getMap(): StreetViewPanorama;
@@ -216,13 +216,13 @@ declare module google.maps {
getShadow(): MarkerImage;
getShape(): MarkerShape;
getTitle(): string;
getVisible(): bool;
getVisible(): boolean;
getZIndex(): number;
setAnimation(animation: Animation): void;
setClickable(flag: bool): void;
setClickable(flag: boolean): void;
setCursor(cursor: string): void;
setDraggable(flag: bool): void;
setFlat(flag: bool): void;
setDraggable(flag: boolean): void;
setFlat(flag: boolean): void;
setIcon(icon: MarkerImage): void;
setIcon(icon: string): void;
setMap(map: Map): void;
@@ -233,25 +233,25 @@ declare module google.maps {
setShadow(shadow: string): void;
setShape(shape: MarkerShape): void;
setTitle(title: string): void;
setVisible(visible: bool): void;
setVisible(visible: boolean): void;
setZIndex(zIndex: number): void;
}
export interface MarkerOptions {
animation?: Animation;
clickable?: bool;
clickable?: boolean;
cursor?: string;
draggable?: bool;
flat?: bool;
draggable?: boolean;
flat?: boolean;
icon?: any;
map?: any;
optimized?: bool;
optimized?: boolean;
position?: LatLng;
raiseOnDrag?: bool;
raiseOnDrag?: boolean;
shadow?: any;
shape?: MarkerShape;
title?: string;
visible?: bool;
visible?: boolean;
zIndex?: number;
}
@@ -312,7 +312,7 @@ declare module google.maps {
export interface InfoWindowOptions {
content?: any;
disableAutoPan?: bool;
disableAutoPan?: boolean;
maxWidth?: number;
pixelOffset?: Size;
position?: LatLng;
@@ -321,37 +321,37 @@ declare module google.maps {
export class Polyline extends MVCObject {
constructor (opts?: PolylineOptions);
getDraggable(): bool;
getEditable(): bool;
getDraggable(): boolean;
getEditable(): boolean;
getMap(): Map;
getPath(): MVCArray;
getVisible(): bool;
setDraggable(draggable: bool): void;
setEditable(editable: bool): void;
getVisible(): boolean;
setDraggable(draggable: boolean): void;
setEditable(editable: boolean): void;
setMap(map: Map): void;
setOptions(options: PolylineOptions): void;
setPath(path: MVCArray): void;
setPath(path: LatLng[]): void;
setVisible(visible: bool): void;
setVisible(visible: boolean): void;
}
export interface PolylineOptions {
clickable?: bool;
draggable?: bool;
editable?: bool;
geodesic?: bool;
clickable?: boolean;
draggable?: boolean;
editable?: boolean;
geodesic?: boolean;
icons?: IconSequence[];
map?: Map;
path?: any[];
strokeColor?: string;
strokeOpacity?: number;
strokeWeight?: number;
visible?: bool;
visible?: boolean;
zIndex?: number;
}
export interface IconSequence {
fixedRotation?: bool;
fixedRotation?: boolean;
icon?: Symbol;
offset?: string;
repeat?: string;
@@ -359,14 +359,14 @@ declare module google.maps {
export class Polygon extends MVCObject {
constructor (opts?: PolygonOptions);
getDraggable(): bool;
getEditable(): bool;
getDraggable(): boolean;
getEditable(): boolean;
getMap(): Map;
getPath(): MVCArray;
getPaths(): MVCArray[];
getVisible(): bool;
setDraggable(draggable: bool): void;
setEditable(editable: bool): void;
getVisible(): boolean;
setDraggable(draggable: boolean): void;
setEditable(editable: boolean): void;
setMap(map: Map): void;
setOptions(options: PolygonOptions): void;
setPath(path: MVCArray): void;
@@ -375,23 +375,23 @@ declare module google.maps {
setPaths(paths: MVCArray[]): void;
setPaths(path: LatLng[]): void;
setPaths(path: LatLng[][]): void;
setVisible(visible: bool): void;
setVisible(visible: boolean): void;
}
export interface PolygonOptions {
clickable?: bool;
draggable?: bool;
editable?: bool;
clickable?: boolean;
draggable?: boolean;
editable?: boolean;
fillColor?: string;
fillOpacity?: number;
geodesic?: bool;
geodesic?: boolean;
map?: Map;
paths?: any[];
strokeColor?: string;
strokeOpacity?: number;
strokePosition?: StrokePosition;
strokeWeight?: number;
visible?: bool;
visible?: boolean;
zIndex?: number;
}
@@ -404,23 +404,23 @@ declare module google.maps {
export class Rectangle extends MVCObject {
constructor (opts?: RectangleOptions);
getBounds(): LatLngBounds;
getDraggable(): bool;
getEditable(): bool;
getDraggable(): boolean;
getEditable(): boolean;
getMap(): Map;
getVisible(): bool;
getVisible(): boolean;
setBounds(bounds: LatLngBounds): void;
setDraggable(draggable: bool): void;
setEditable(editable: bool): void;
setDraggable(draggable: boolean): void;
setEditable(editable: boolean): void;
setMap(map: Map): void;
setOptions(options: RectangleOptions): void;
setVisible(visible: bool): void;
setVisible(visible: boolean): void;
}
export interface RectangleOptions {
bounds?: LatLngBounds;
clickable?: bool;
draggable?: bool;
editable?: bool;
clickable?: boolean;
draggable?: boolean;
editable?: boolean;
fillColor?: string;
fillOpacity?: number;
map?: Map;
@@ -428,7 +428,7 @@ declare module google.maps {
strokeOpacity?: number;
strokePosition?: StrokePosition;
strokeWeight?: number;
visible?: bool;
visible?: boolean;
zIndex?: number;
}
@@ -436,25 +436,25 @@ declare module google.maps {
constructor (opts?: CircleOptions);
getBounds(): LatLngBounds;
getCenter(): LatLng;
getDraggable(): bool;
getEditable(): bool;
getDraggable(): boolean;
getEditable(): boolean;
getMap(): Map;
getRadius(): number;
getVisible(): bool;
getVisible(): boolean;
setCenter(center: LatLng): void;
setDraggable(draggable: bool): void;
setEditable(editable: bool): void;
setDraggable(draggable: boolean): void;
setEditable(editable: boolean): void;
setMap(map: Map): void;
setOptions(options: CircleOptions): void;
setRadius(radius: number): void;
setVisible(visible: bool): void;
setVisible(visible: boolean): void;
}
export interface CircleOptions {
center?: LatLng;
clickable?: bool;
draggable?: bool;
editable?: bool;
clickable?: boolean;
draggable?: boolean;
editable?: boolean;
fillColor?: string;
fillOpacity?: number;
map?: Map;
@@ -463,7 +463,7 @@ declare module google.maps {
strokeOpacity?: number;
strokePosition?: StrokePosition;
strokeWeight?: number;
visible?: bool;
visible?: boolean;
zIndex?: number;
}
@@ -484,7 +484,7 @@ declare module google.maps {
}
export interface GroundOverlayOptions {
clickable?: bool;
clickable?: boolean;
map?: Map;
opacity?: number;
}
@@ -511,8 +511,8 @@ declare module google.maps {
}
export class MapCanvasProjection extends MVCObject {
fromContainerPixelToLatLng(pixel: Point, nowrap?: bool): LatLng;
fromDivPixelToLatLng(pixel: Point, nowrap?: bool): LatLng;
fromContainerPixelToLatLng(pixel: Point, nowrap?: boolean): LatLng;
fromDivPixelToLatLng(pixel: Point, nowrap?: boolean): LatLng;
fromLatLngToContainerPixel(latLng: LatLng): Point;
fromLatLngToDivPixel(latLng: LatLng): Point;
getWorldWidth(): number;
@@ -583,19 +583,19 @@ declare module google.maps {
export interface DirectionsRendererOptions {
directions?: DirectionsResult;
draggable?: bool;
hideRouteList?: bool;
draggable?: boolean;
hideRouteList?: boolean;
infoWindow?: InfoWindow;
map?: Map;
markerOptions?: MarkerOptions;
panel?: Element;
polylineOptions?: PolylineOptions;
preserveViewport?: bool;
preserveViewport?: boolean;
routeIndex?: number;
suppressBicyclingLayer?: bool;
suppressInfoWindows?: bool;
suppressMarkers?: bool;
suppressPolylines?: bool;
suppressBicyclingLayer?: boolean;
suppressInfoWindows?: boolean;
suppressMarkers?: boolean;
suppressPolylines?: boolean;
}
export class DirectionsService {
@@ -604,12 +604,12 @@ declare module google.maps {
}
export interface DirectionsRequest {
avoidHighways?: bool;
avoidTolls?: bool;
avoidHighways?: boolean;
avoidTolls?: boolean;
destination?: any;
optimizeWaypoints?: bool;
optimizeWaypoints?: boolean;
origin?: any;
provideRouteAlternatives?: bool;
provideRouteAlternatives?: boolean;
region?: string;
transitOptions?: TransitOptions;
travelMode?: TravelMode;
@@ -636,7 +636,7 @@ declare module google.maps {
export interface DirectionsWaypoint {
location: any;
stopover: bool;
stopover: boolean;
}
export enum DirectionsStatus {
@@ -794,8 +794,8 @@ declare module google.maps {
}
export interface DistanceMatrixRequest {
avoidHighways?: bool;
avoidTolls?: bool;
avoidHighways?: boolean;
avoidTolls?: boolean;
destinations?: any[];
origins?: any[];
region?: string;
@@ -855,7 +855,7 @@ declare module google.maps {
export interface Projection {
fromLatLngToPoint(latLng: LatLng, point?: Point): Point;
fromPointToLatLng(pixel: Point, noWrap?: bool): LatLng;
fromPointToLatLng(pixel: Point, noWrap?: boolean): LatLng;
}
export class ImageMapType extends MVCObject implements MapType {
@@ -943,7 +943,7 @@ declare module google.maps {
export interface MapTypeStyler {
gamma?: number;
hue?: string;
invert_lightness?: bool;
invert_lightness?: boolean;
lightness?: number;
saturation?: number;
visibility?: string;
@@ -964,12 +964,12 @@ declare module google.maps {
}
export interface FusionTablesLayerOptions {
clickable?: bool;
clickable?: boolean;
heatmap?: FusionTablesHeatmap;
map?: Map;
query?: FusionTablesQuery;
styles?: FusionTablesStyle[];
suppressInfoWindows?: bool;
suppressInfoWindows?: boolean;
}
export interface FusionTablesQuery {
@@ -989,7 +989,7 @@ declare module google.maps {
}
export interface FusionTablesHeatmap {
enabled: bool;
enabled: boolean;
}
export interface FusionTablesMarkerOptions {
@@ -1033,10 +1033,10 @@ declare module google.maps {
}
export interface KmlLayerOptions {
clickable?: bool;
clickable?: boolean;
map?: Map;
preserveViewport?: bool;
suppressInfoWindows?: bool;
preserveViewport?: boolean;
suppressInfoWindows?: boolean;
}
export interface KmlLayerMetadata {
@@ -1099,32 +1099,32 @@ declare module google.maps {
getPano(): string;
getPosition(): LatLng;
getPov(): StreetViewPov;
getVisible(): bool;
getVisible(): boolean;
registerPanoProvider(provider: (input: string) => StreetViewPanoramaData);
setPano(pano: string): void;
setPosition(latLng: LatLng): void;
setPov(pov: StreetViewPov): void;
setVisible(flag: bool): void;
setVisible(flag: boolean): void;
}
export interface StreetViewPanoramaOptions {
addressControl?: bool;
addressControl?: boolean;
addressControlOptions?: StreetViewAddressControlOptions;
clickToGo?: bool;
disableDoubleClickZoom?: bool;
enableCloseButton?: bool;
imageDateControl?: bool;
linksControl?: bool;
panControl?: bool;
clickToGo?: boolean;
disableDoubleClickZoom?: boolean;
enableCloseButton?: boolean;
imageDateControl?: boolean;
linksControl?: boolean;
panControl?: boolean;
panControlOptions?: PanControlOptions;
pano?: string;
panoProvider?: (input: string) => StreetViewPanoramaData;
position?: LatLng;
pov?: StreetViewPov;
scrollwheel?: bool;
visible?: bool;
zoomControl?: bool;
scrollwheel?: boolean;
visible?: boolean;
zoomControl?: boolean;
zoomControlOptions?: ZoomControlOptions;
}
@@ -1179,10 +1179,10 @@ declare module google.maps {
export interface MapsEventListener { }
export class event {
static addDomListener(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void , capture?: bool): MapsEventListener;
static addDomListener(instance: any, eventName: string, handler: Function, capture?: bool): MapsEventListener;
static addDomListenerOnce(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void , capture?: bool): MapsEventListener;
static addDomListenerOnce(instance: any, eventName: string, handler: Function, capture?: bool): MapsEventListener;
static addDomListener(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void , capture?: boolean): MapsEventListener;
static addDomListener(instance: any, eventName: string, handler: Function, capture?: boolean): MapsEventListener;
static addDomListenerOnce(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void , capture?: boolean): MapsEventListener;
static addDomListenerOnce(instance: any, eventName: string, handler: Function, capture?: boolean): MapsEventListener;
static addListener(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void ): MapsEventListener;
static addListener(instance: any, eventName: string, handler: Function): MapsEventListener;
static addListenerOnce(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void ): MapsEventListener;
@@ -1200,8 +1200,8 @@ declare module google.maps {
/***** Base *****/
export class LatLng {
constructor (lat: number, lng: number, noWrap?: bool);
equals(other: LatLng): bool;
constructor (lat: number, lng: number, noWrap?: boolean);
equals(other: LatLng): boolean;
lat(): number;
lng(): number;
toString(): string;
@@ -1211,14 +1211,14 @@ declare module google.maps {
export class LatLngBounds {
constructor (sw?: LatLng, ne?: LatLng);
contains(latLng: LatLng): bool;
equals(other: LatLngBounds): bool;
contains(latLng: LatLng): boolean;
equals(other: LatLngBounds): boolean;
extend(point: LatLng): LatLngBounds;
getCenter(): LatLng;
getNorthEast(): LatLng;
getSouthWest(): LatLng;
intersects(other: LatLngBounds): bool;
isEmpty(): bool;
intersects(other: LatLngBounds): boolean;
isEmpty(): boolean;
toSpan(): LatLng;
toString(): string;
toUrlValue(precision?: number): string;
@@ -1229,7 +1229,7 @@ declare module google.maps {
constructor (x: number, y: number);
x: number;
y: number;
equals(other: Point): bool;
equals(other: Point): boolean;
toString(): string;
}
@@ -1237,7 +1237,7 @@ declare module google.maps {
constructor (width: number, height: number, widthUnit?: string, heightUnit?: string);
height: number;
width: number;
equals(other: Size): bool;
equals(other: Size): boolean;
toString(): string;
}
@@ -1259,8 +1259,8 @@ declare module google.maps {
}
export class poly {
containsLocation(point: LatLng, polygon: Polygon): bool;
isLocationOnEdge(point: LatLng, poly: any, tolerance?: number): bool;
containsLocation(point: LatLng, polygon: Polygon): boolean;
isLocationOnEdge(point: LatLng, poly: any, tolerance?: number): boolean;
}
}
@@ -1319,7 +1319,7 @@ declare module google.maps {
export interface PanoramioLayerOptions {
map?: Map;
suppressInfoWindows?: bool;
suppressInfoWindows?: boolean;
tag?: string;
userId?: string;
}
@@ -1400,7 +1400,7 @@ declare module google.maps {
export interface PlaceSearchPagination {
nextPage(): void;
hasNextPage: bool;
hasNextPage: boolean;
}
export class PlacesService {
@@ -1445,7 +1445,7 @@ declare module google.maps {
export interface DrawingManagerOptions {
circleOptions?: CircleOptions;
drawingControl?: bool;
drawingControl?: boolean;
drawingControlOptions?: DrawingControlOptions;
drawingMode?: OverlayType;
map?: Map;
@@ -1488,10 +1488,10 @@ declare module google.maps {
}
export interface WeatherLayerOptions {
clickable: bool;
clickable: boolean;
labelColor: LabelColor;
map: Map;
suppressInfoWindows: bool;
suppressInfoWindows: boolean;
temperatureUnits: TemperatureUnit;
windSpeedUnits: WindSpeedUnit;
}
@@ -1560,7 +1560,7 @@ declare module google.maps {
export interface HeatmapLayerOptions {
data: LatLng[];
dissipating: bool;
dissipating: boolean;
gradient: string[];
map: Map;
maxIntensity: number;

16
gruntjs/gruntjs.d.ts vendored
View File

@@ -16,9 +16,9 @@ interface IGruntConfig {
/// uglify : https://github.com/gruntjs/grunt-contrib-uglify
////////////////
interface IGruntUglifyConfig {
mangle?: bool;
compress?: bool;
beautify?: bool;
mangle?: boolean;
compress?: boolean;
beautify?: boolean;
report?: any; // false / 'min' / 'gzip'
sourceMap?: any; // String / Function
sourceMapRoot?: string;
@@ -26,8 +26,8 @@ interface IGruntUglifyConfig {
sourceMappingURL?: any; // String / Function
sourceMapPrefix?: number;
wrap?: string;
exportAll?: bool;
preserveComments?: any; // bool / string / function
exportAll?: boolean;
preserveComments?: any; // boolean / string / function
banner?: string;
}
interface IGruntConfig {
@@ -126,7 +126,7 @@ interface IGruntFileObject {
readYAML(filepath, options?: IGruntFileObjectOptionsSimple);
write(filepath, contents, options?: IGruntFileObjectOptionsSimple);
copy(srcpath, destpath, options?: IGruntFileObjectOptions);
delete (filepath, options?: { force?: bool; });
delete (filepath, options?: { force?: boolean; });
// Directories
mkdir(dirpath, mode?);
@@ -138,8 +138,8 @@ interface IGruntFileObject {
expandMapping(patterns, dest, options?);
match(patterns, filepaths);
match(options, patterns, filepaths);
isMatch(patterns, filepaths): bool;
isMatch(options, patterns, filepaths): bool;
isMatch(patterns, filepaths): boolean;
isMatch(options, patterns, filepaths): boolean;
// file types
exists(...paths: any[]);

View File

@@ -926,7 +926,7 @@ interface HighchartsTooltipOptions {
borderColor?: string;
borderRadius?: number;
borderWidth?: number;
crosshairs?: any; // bool | [bool,bool] | CrosshairObject | [CrosshairObject,CrosshairObject]
crosshairs?: any; // boolean | [bool,bool] | CrosshairObject | [CrosshairObject,CrosshairObject]
enabled?: boolean;
footerFormat?: string;
formatter?: () => any;

View File

@@ -11,7 +11,7 @@ interface HistoryAdapter {
}
interface Historyjs {
enabled: bool;
enabled: boolean;
pushState(data, title, url);
replaceState(data, title, url);
getState();

12
humane/humane.d.ts vendored
View File

@@ -9,9 +9,9 @@ interface HumaneOptions {
baseCls?: string;
addnCls?: string;
timeout?: number;
waitForMove?: bool;
clickToClose?: bool;
forceNew?: bool;
waitForMove?: boolean;
clickToClose?: boolean;
forceNew?: boolean;
}
interface Humane {
@@ -19,9 +19,9 @@ interface Humane {
baseCls: string;
addnCls: string;
timeout: number;
waitForMove: bool;
clickToClose: bool;
forceNew: bool;
waitForMove: boolean;
clickToClose: boolean;
forceNew: boolean;
create(options?: HumaneOptions): Humane;
info: Function;

8
icheck/icheck.d.ts vendored
View File

@@ -79,7 +79,7 @@ interface ICheckOptions {
/**
* Adds hoverClass to customized input on label hover and labelHoverClass to label on input hover
*/
labelHover?: bool;
labelHover?: boolean;
/**
* Class added to label if labelHover set to true
*/
@@ -91,15 +91,15 @@ interface ICheckOptions {
/**
* True to set 'pointer' CSS cursor over enabled inputs and 'default' over disabled
*/
cursor?: bool;
cursor?: boolean;
/**
* Set true to inherit original input's class name
*/
inheritClass?: bool;
inheritClass?: boolean;
/**
* If set to true, input's id is prefixed with 'iCheck-' and attached
*/
inheritID?: bool;
inheritID?: boolean;
/**
* Add HTML code or text inside customized input
*/

View File

@@ -9,16 +9,16 @@ interface iScrollEvent {
}
interface iScrollOptions {
hScroll?: bool;
vScroll?: bool;
hScroll?: boolean;
vScroll?: boolean;
x?: number;
y?: number;
bounce?: bool;
bounceLock?: bool;
momentum?: bool;
lockDirection?: bool;
useTransform?: bool;
useTransition?: bool;
bounce?: boolean;
bounceLock?: boolean;
momentum?: boolean;
lockDirection?: boolean;
useTransform?: boolean;
useTransition?: boolean;
// Events
onRefresh?: iScrollEvent;
@@ -39,7 +39,7 @@ declare class iScroll {
destroy(): void;
refresh(): void;
scrollTo(x: number, y: number, time: number, relative: bool): void;
scrollTo(x: number, y: number, time: number, relative: boolean): void;
scrollToElement(element: string, time: number): void;
disable(): void;
enalbe(): void;

36
iscroll/iscroll.d.ts vendored
View File

@@ -9,30 +9,30 @@ interface iScrollEvent {
}
interface iScrollOptions {
hScroll?: bool;
vScroll?: bool;
hScroll?: boolean;
vScroll?: boolean;
x?: number;
y?: number;
bounce?: bool;
bounceLock?: bool;
momentum?: bool;
lockDirection?: bool;
useTransform?: bool;
useTransition?: bool;
bounce?: boolean;
bounceLock?: boolean;
momentum?: boolean;
lockDirection?: boolean;
useTransform?: boolean;
useTransition?: boolean;
topOffset?: number;
checkDOMChanges?: bool;
handleClick?: bool;
checkDOMChanges?: boolean;
handleClick?: boolean;
// Scrollbar
hScrollbar?: bool;
vScrollbar?: bool;
fixedScrollbar?: bool;
hideScrollbar?: bool;
fadeScrollbar?: bool;
hScrollbar?: boolean;
vScrollbar?: boolean;
fixedScrollbar?: boolean;
hideScrollbar?: boolean;
fadeScrollbar?: boolean;
scrollbarClass?: string;
// Zoom
zoom?: bool;
zoom?: boolean;
zoomMin?: number;
zoomMax?: number;
doubleTapZoom?: number;
@@ -64,12 +64,12 @@ declare class iScroll {
destroy(): void;
refresh(): void;
scrollTo(x: number, y: number, time: number, relative: bool): void;
scrollTo(x: number, y: number, time: number, relative: boolean): void;
scrollToElement(element: string, time: number): void;
scrollToPage(pageX: number, pageY: number, time: number): void;
disable(): void;
enalbe(): void;
stop(): void;
zoom(x: number, y: number, scale: number, time: number): void;
isReady(): bool;
isReady(): boolean;
}

26
jake/jake.d.ts vendored
View File

@@ -64,7 +64,7 @@ declare module jake{
////////////////////////////////////////////////////////////////////////////////////
interface UtilOptions{
silent?: bool;
silent?: boolean;
}
/**
@@ -103,16 +103,16 @@ declare module jake{
* print to stdout, default false
*/
printStdout?:bool;
printStdout?:boolean;
/**
* print to stderr, default false
*/
printStderr?:bool;
printStderr?:boolean;
/**
* stop execution on error, default true
*/
breakOnError?:bool;
breakOnError?:boolean;
}
export function exec(cmds:string[], callback?:()=>void, opts?:ExecOptions);
@@ -156,7 +156,7 @@ declare module jake{
export var program: {
opts: {
[name:string]: any;
quiet: bool;
quiet: boolean;
};
taskNames: string[];
taskArgs: string[];
@@ -174,7 +174,7 @@ declare module jake{
* Perform this task asynchronously. If you flag a task with this option, you must call the global `complete` method inside the task's action, for execution to proceed to the next task.
* @default false
*/
asyc?: bool;
asyc?: boolean;
}
/**
@@ -225,7 +225,7 @@ declare module jake{
* Perform this task asynchronously. If you flag a task with this option, you must call the global `complete` method inside the task's action, for execution to proceed to the next task.
* @default false
*/
asyc?: bool;
asyc?: boolean;
}
export class FileTask{
@@ -239,7 +239,7 @@ declare module jake{
}
interface FileFilter{
(filename:string): bool;
(filename:string): boolean;
}
export class FileList{
@@ -259,7 +259,7 @@ declare module jake{
* @param name The filename to check
* @return Whether or not the file should be excluded
*/
shouldExclude(name:string): bool;
shouldExclude(name:string): boolean;
/**
* Excludes file-patterns from the FileList. Should be called with one or more
@@ -330,22 +330,22 @@ declare module jake{
/**
* If set to true, uses the `jar` utility to create a .jar archive of the pagckage
*/
needJar: bool;
needJar: boolean;
/**
* If set to true, uses the `tar` utility to create a gzip .tgz archive of the pagckage
*/
needTar: bool;
needTar: boolean;
/**
* If set to true, uses the `tar` utility to create a bzip2 .bz2 archive of the pagckage
*/
needTarBz2: bool;
needTarBz2: boolean;
/**
* If set to true, uses the `zip` utility to create a .zip archive of the pagckage
*/
needZip: bool;
needZip: boolean;
/**
* The list of files and directories to include in the package-archive

View File

@@ -25,45 +25,45 @@ declare module jasmine {
interface Matchers {
//toBe
toBeArray(): bool;
toBeCloseToOneOf(values: any[], isCloseToFunction: (actual: number, expected: number) => bool): bool;
toBeInstanceOf(Constructor: Function): bool;
toBeInRange(min: number, max: number): bool;
toBeNan(): bool;
toBeNumber(): bool;
toBeOfType(type: string): bool;
toBeOneOf(values: any[]): bool;
toBeArray(): boolean;
toBeCloseToOneOf(values: any[], isCloseToFunction: (actual: number, expected: number) => boolean): boolean;
toBeInstanceOf(Constructor: Function): boolean;
toBeInRange(min: number, max: number): boolean;
toBeNan(): boolean;
toBeNumber(): boolean;
toBeOfType(type: string): boolean;
toBeOneOf(values: any[]): boolean;
//toContain
toContainOnce(value: any): bool;
toContainOnce(value: any): boolean;
//toHave
toHaveBeenCalledXTimes(count:number): bool;
toHaveLength(length:number): bool;
toHaveOwnProperties(...names:string[]): bool;
toHaveOwnPropertiesWithValues(obj:Object): bool;
toHaveProperties(...names:string[]): bool;
toHavePropertiesWithValues(obj:Object): bool;
toExactlyHaveProperties(...names:string[]): bool;
toHaveBeenCalledXTimes(count:number): boolean;
toHaveLength(length:number): boolean;
toHaveOwnProperties(...names:string[]): boolean;
toHaveOwnPropertiesWithValues(obj:Object): boolean;
toHaveProperties(...names:string[]): boolean;
toHavePropertiesWithValues(obj:Object): boolean;
toExactlyHaveProperties(...names:string[]): boolean;
//toStartEndWith
toStartWith(value:any): bool;
toStartWith(value:any[]): bool;
toStartWith(value:any): boolean;
toStartWith(value:any[]): boolean;
toEndWith(value:any): bool;
toEndWith(values:any[]): bool;
toEndWith(value:any): boolean;
toEndWith(values:any[]): boolean;
toEachStartWith(searchString:string): bool;
toSomeStartWith(searchString:string): bool;
toEachStartWith(searchString:string): boolean;
toSomeStartWith(searchString:string): boolean;
toEachEndWith(searchString:string): bool;
toSomeEndWith(searchString:string): bool;
toEachEndWith(searchString:string): boolean;
toSomeEndWith(searchString:string): boolean;
toStartWithEither(...searchString:any[]): bool;
toStartWithEither(...searchString:any[]): boolean;
//toThrow
toThrowInstanceOf(klass:Function): bool;
toThrowStartsWith(text:string): bool;
toThrowInstanceOf(klass:Function): boolean;
toThrowStartsWith(text:string): boolean;
}
}

View File

@@ -34,7 +34,7 @@ interface JQRangeSliderDateSteps {
interface JQRangeSliderOptions {
wheelMode?: string; // function of the wheel, "zoom", "scroll" or null
wheelSpeed?: number; // speed of the wheel scrolling
arrows?: bool; // hide the arrows or not
arrows?: boolean; // hide the arrows or not
valueLabels?: string; // when to show value labels: "show" (always), "hide" (never) and "change" (only if slider changed)
durationIn?: number; // fade in length when displaying value labels (only when valueLabels = "change")
durationOut?: number; // fade out length when displaying value labels (only when valueLabels = "change")

View File

@@ -13,12 +13,12 @@ interface WizardOptions {
lastSelector?: string;
onShow?: (activeTab: any, navigation: any, nextIndex: number) => void;
onInit?: (activeTab: any, navigation: any, currentIndex: number) => void;
onNext?: (activeTab: any, navigation: any, nextIndex: number) => bool;
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => bool;
onLast?: (activeTab: any, navigation: any, lastIndex: number) => bool;
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => bool;
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => bool;
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => bool;
onNext?: (activeTab: any, navigation: any, nextIndex: number) => boolean;
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => boolean;
onLast?: (activeTab: any, navigation: any, lastIndex: number) => boolean;
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => boolean;
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
}
interface Wizard {

View File

@@ -6,10 +6,10 @@
/// <reference path="../jquery/jquery.d.ts"/>
interface ClientSideLoggingClientInfoObject {
location?: bool; // The url to the page on which the error occurred.
screen_size?: bool; // The size of the user's screen (different to the window size because the window might not be maximized)
user_agent?: bool; // The user agent string.
window_size?: bool; // The window size.
location?: boolean; // The url to the page on which the error occurred.
screen_size?: boolean; // The size of the user's screen (different to the window size because the window might not be maximized)
user_agent?: boolean; // The user agent string.
window_size?: boolean; // The window size.
}
interface ClientSideLoggingObject {
@@ -17,8 +17,8 @@ interface ClientSideLoggingObject {
info_url?: string; // The url to which info logs are sent
log_url?: string; // The url to which standard logs are sent
log_level?: number; // The level at which to log. This allows you to keep the calls to the logging in your code and just change this variable to log varying degrees. 1 = only error, 2 = error & log, 3 = error, log & info
native_error?: bool; // Whether or not to send native js errors as well (using window.onerror).
hijack_console?: bool; // Hijacks the default console functionality (ie: all your console.error/info/log are belong to us).
native_error?: boolean; // Whether or not to send native js errors as well (using window.onerror).
hijack_console?: boolean; // Hijacks the default console functionality (ie: all your console.error/info/log are belong to us).
query_var?: string; // The variable to send the log message through as.
client_info?: ClientSideLoggingClientInfoObject; // Configuration for what info about the client's browser is logged.
}

View File

@@ -36,11 +36,11 @@ interface ColorboxSettings {
/**
* If true, and if maxWidth, maxHeight, innerWidth, innerHeight, width, or height have been defined, Colorbox will scale photos to fit within the those values.
*/
scalePhotos?: bool;
scalePhotos?: boolean;
/**
* If false, Colorbox will hide scrollbars for overflowing content.
*/
scrolling?: bool;
scrolling?: boolean;
/**
* The overlay opacity level. Range: 0 to 1.
*/
@@ -48,35 +48,35 @@ interface ColorboxSettings {
/**
* If true, Colorbox will immediately open.
*/
open?: bool;
open?: boolean;
/**
* If true, focus will be returned when Colorbox exits to the element it was launched from.
*/
returnFocus?: bool;
returnFocus?: boolean;
/**
* If false, the loading graphic removal and onComplete event will be delayed until iframe's content has completely loaded.
*/
fastIframe?: bool;
fastIframe?: boolean;
/**
* Allows for preloading of 'Next' and 'Previous' content in a group, after the current content has finished loading. Set to false to disable.
*/
preloading?: bool;
preloading?: boolean;
/**
* If false, disables closing Colorbox by clicking on the background overlay.
*/
overlayClose?: bool;
overlayClose?: boolean;
/**
* If false, will disable closing colorbox on 'esc' key press.
*/
escKey?: bool;
escKey?: boolean;
/**
* If false, will disable the left and right arrow keys from navigating between the items in a group.
*/
arrowKey?: bool;
arrowKey?: boolean;
/**
* If false, will disable the ability to loop back to the beginning of the group when on the last element.
*/
loop?: bool;
loop?: boolean;
/**
* For submitting GET or POST values through an ajax request. The data property will act exactly like jQuery's .load() data argument, as Colorbox uses .load() for ajax handling.
*/
@@ -116,11 +116,11 @@ interface ColorboxSettings {
/**
* If true, specifies that content should be displayed in an iFrame.
*/
iframe?: bool;
iframe?: boolean;
/**
* If true, content from the current document can be displayed by passing the href property a jQuery selector, or jQuery object.
*/
inline?: bool;
inline?: boolean;
/**
* For displaying a string of HTML or text: $.colorbox({html:"<p>Hello</p>"});
*/
@@ -128,7 +128,7 @@ interface ColorboxSettings {
/**
* If true, this setting forces Colorbox to display a link as a photo. Use this when automatic photo detection fails (such as using a url like 'photo.php' instead of 'photo.jpg')
*/
photo?: bool;
photo?: boolean;
/**
* This property isn't actually used as Colorbox assumes all hrefs should be treated as either ajax or photos, unless one of the other content types were specified.
*/
@@ -168,7 +168,7 @@ interface ColorboxSettings {
/**
* If true, adds an automatic slideshow to a content group / gallery.
*/
slideshow?: bool;
slideshow?: boolean;
/**
* Sets the speed of the slideshow, in milliseconds.
*/
@@ -176,7 +176,7 @@ interface ColorboxSettings {
/**
* If true, the slideshow will automatically start to play.
*/
slideshowAuto?: bool;
slideshowAuto?: boolean;
/**
* Text for the slideshow start button.
*/
@@ -188,7 +188,7 @@ interface ColorboxSettings {
/**
* If true, Colorbox will be displayed in a fixed position within the visitor's viewport. This is unlike the default absolute positioning relative to the document.
*/
fixed?: bool;
fixed?: boolean;
/**
* Accepts a pixel or percent value (50, "50px", "10%"). Controls Colorbox's vertical positioning instead of using the default position of being centered in the viewport.
*/
@@ -208,15 +208,15 @@ interface ColorboxSettings {
/**
* Repositions Colorbox if the window's resize event is fired.
*/
reposition?: bool;
reposition?: boolean;
/**
* If true, Colorbox will scale down the current photo to match the screen's pixel ratio
*/
retinaImage?: bool;
retinaImage?: boolean;
/**
* If true and the device has a high resolution display, Colorbox will replace the current photo's file extention with the retinaSuffix+extension
*/
retinaUrl?: bool;
retinaUrl?: boolean;
/**
* If retinaUrl is true and the device has a high resolution display, the href value will have it's extention extended with this suffix. For example, the default value would change `my-photo.jpg` to `my-photo@2x.jpg`
*/

View File

@@ -9,7 +9,7 @@ interface JQueryContextMenuOptions {
selector: string;
appendTo?: string;
trigger?: string;
autoHide?: bool;
autoHide?: boolean;
delay?: number;
determinePosition?: (menu) => void;
position?: (opt, x, y) => void;

View File

@@ -8,21 +8,21 @@
interface CycleOptions {
activePagerClass?: string; // class name used for the active pager link
after?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, forwardFlag: bool) => void; // transition callback (scope set to element that was shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
allowPagerClickBubble?: bool; // allows or prevents click event on pager anchors from bubbling
after?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, forwardFlag: boolean) => void; // transition callback (scope set to element that was shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
allowPagerClickBubble?: boolean; // allows or prevents click event on pager anchors from bubbling
animIn?: any; // properties that define how the slide animates in
animOut?: any; // properties that define how the slide animates out
aspect?: bool; // preserve aspect ratio during fit resizing, cropping if necessary (must be used with fit option)
autostop?: bool; // true to end slideshow after X transitions (where X == slide count)
aspect?: boolean; // preserve aspect ratio during fit resizing, cropping if necessary (must be used with fit option)
autostop?: boolean; // true to end slideshow after X transitions (where X == slide count)
autostopCount?: number; // number of transitions (optionally used with autostop to define X)
backwards?: bool; // true to start slideshow at last slide and move backwards through the stack
before?: (currSlideElement: Element, nextSlideElement: Element, options:CycleOptions, forwardFlag: bool) => void; // transition callback (scope set to element to be shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
center?: bool; // set to true to have cycle add top/left margin to each slide (use with width and height options)
cleartype?: bool; // true if clearType corrections should be applied (for IE)
cleartypeNoBg?: bool; // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
containerResize?: bool; // resize container to fit largest slide
containerResizeHeight?: bool; // resize containers height to fit the largest slide but leave the width dynamic
continuous?: bool; // true to start next transition immediately after current one completes
backwards?: boolean; // true to start slideshow at last slide and move backwards through the stack
before?: (currSlideElement: Element, nextSlideElement: Element, options:CycleOptions, forwardFlag: boolean) => void; // transition callback (scope set to element to be shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
center?: boolean; // set to true to have cycle add top/left margin to each slide (use with width and height options)
cleartype?: boolean; // true if clearType corrections should be applied (for IE)
cleartypeNoBg?: boolean; // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
containerResize?: boolean; // resize container to fit largest slide
containerResizeHeight?: boolean; // resize containers height to fit the largest slide but leave the width dynamic
continuous?: boolean; // true to start next transition immediately after current one completes
cssAfter?: any; // properties that defined the state of the slide after transitioning out
cssBefore?: any; // properties that define the initial state of the slide before transitioning in
delay?: number; // additional delay (in ms) for first transition (hint: can be negative)
@@ -30,40 +30,40 @@ interface CycleOptions {
easeOut?: string; // easing for "out" transition
easing?: string; // easing method for both in and out transitions
end?: (options: CycleOptions) => void; // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
fastOnEvent?: bool; // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
fit?: bool; // force slides to fit container
fastOnEvent?: boolean; // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
fit?: boolean; // force slides to fit container
fx?: string; // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
fxFn?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, afterCalback: Function, forwardFlag: bool) => void; // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
fxFn?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, afterCalback: Function, forwardFlag: boolean) => void; // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
height?: any; // container height (if the 'fit' option is true, the slides will be set to this height as well)
manualTrump?: bool; // causes manual transition to stop an active transition instead of being ignored
manualTrump?: boolean; // causes manual transition to stop an active transition instead of being ignored
metaAttr?: string; // data- attribute that holds the option data for the slideshow
next?: any; // element, jQuery object, or jQuery selector string for the element to use as event trigger for next slide
nowrap?: bool; // true to prevent slideshow from wrapping
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)
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
pause?: bool; // true to enable "pause on hover"
pauseOnPagerHover?: bool; // true to pause when hovering over pager link
pause?: boolean; // true to enable "pause on hover"
pauseOnPagerHover?: boolean; // true to pause when hovering over pager link
prev?: any; // element, jQuery object, or jQuery selector string for the element to use as event trigger for previous slide
prevNextEvent?: string; // event which drives the manual transition to the previous or next slide
random?: bool; // true for random, false for sequence (not applicable to shuffle fx)
randomizeEffects?: bool; // valid when multiple effects are used; true to make the effect sequence random
requeueOnImageNotLoaded?: bool; // requeue the slideshow if any image slides are not yet loaded
random?: boolean; // true for random, false for sequence (not applicable to shuffle fx)
randomizeEffects?: boolean; // valid when multiple effects are used; true to make the effect sequence random
requeueOnImageNotLoaded?: boolean; // requeue the slideshow if any image slides are not yet loaded
requeueTimeout?: number; // ms delay for requeue
rev?: bool; // causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle)
rev?: boolean; // causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle)
shuffle?: any; // coords for shuffle animation, ex: { top:15, left: 200 }
skipInitializationCallbacks?: bool; // set to true to disable the first before/after callback that occurs prior to any transition
skipInitializationCallbacks?: boolean; // set to true to disable the first before/after callback that occurs prior to any transition
slideExpr?: string; // expression for selecting slides (if something other than all children is required)
slideResize?: bool; // force slide width/height to fixed size before every transition
slideResize?: boolean; // force slide width/height to fixed size before every transition
speed?: any; // speed of the transition (any valid fx speed value)
speedIn?: any; // speed of the 'in' transition
speedOut?: any; // speed of the 'out' transition
startingSlide?: number; // zero-based index of the first slide to be displayed
sync?: bool; // true if in/out transitions should occur simultaneously
sync?: boolean; // true if in/out transitions should occur simultaneously
timeout?: number; // milliseconds between slide transitions (0 to disable auto advance)
timeoutFn?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, forwardFlag: bool) => void; // callback for determining per-slide timeout value: function(currSlideElement, nextSlideElement, options, forwardFlag)
timeoutFn?: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, forwardFlag: boolean) => void; // callback for determining per-slide timeout value: function(currSlideElement, nextSlideElement, options, forwardFlag)
updateActivePagerLink?: (pager: any, currSlide: number, clsName: string) => void; // callback fn invoked to update the active pager link (adds/removes activePagerClass style)
width?: any; // container width (if the 'fit' option is true, the slides will be set to this width as well)
}
@@ -72,7 +72,7 @@ interface Cycle {
(fx?: string): JQuery;
(options?: CycleOptions): JQuery;
ver: () => string;
debug: bool;
debug: boolean;
defaults: CycleOptions;
// expose next/prev function, caller must pass in state
@@ -81,8 +81,8 @@ interface Cycle {
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?: bool) => void; // reset common props before the next transition
hopsFromLast: (options: CycleOptions, forwardFlag?: bool) => number; // helper fn to calculate the number of slides between the current and the next
commonReset: (currSlideElement: Element, nextSlideElement: Element, options: CycleOptions, w?: bool, h?: bool, 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
resetState: (options: CycleOptions, fx?: string) => void; // reset internal state; we do this on every pass in order to support multiple effects

View File

@@ -22,25 +22,25 @@ interface DynaTree {
count(): number;
enable(): void;
disable(): void;
enableUpdate(enable: bool): void;
enableUpdate(enable: boolean): void;
getActiveNode(): DynaTreeNode;
getNodeByKey(key: string): DynaTreeNode;
getPersistData(): any;
getRoot(): DynaTreeNode;
getSelectedNodes(stopOnParents: bool): DynaTreeNode[];
getSelectedNodes(stopOnParents: boolean): DynaTreeNode[];
initialize(): void;
isInitializing(): bool;
isReloading(): bool;
isUserEvent(): bool;
isInitializing(): boolean;
isReloading(): boolean;
isUserEvent(): boolean;
loadKeyPath(keyPath: string, callback: (node: DynaTreeNode, status: string) =>void ): void;
reactivate(setFocus: bool): void;
reactivate(setFocus: boolean): void;
redraw(): void;
reload(): void;
renderInvisibleNodes(): void;
selectKey(key: string, flag: string): DynaTreeNode;
serializeArray(stopOnParents: bool): any[];
serializeArray(stopOnParents: boolean): any[];
toDict(): any;
visit(fn: (node: DynaTreeNode) =>bool, includeRoot: bool): void;
visit(fn: (node: DynaTreeNode) =>bool, includeRoot: boolean): void;
}
@@ -61,36 +61,36 @@ interface DynaTreeNode {
getNextSibling(): DynaTreeNode;
getParent(): DynaTreeNode;
getPrevSibling(): DynaTreeNode;
hasChildren(): bool;
isActive(): bool;
isChildOf(otherNode: DynaTreeNode): bool;
isDescendantOf(otherNode: DynaTreeNode): bool;
isExpanded(): bool;
isFirstSibling(): bool;
isFocused(): bool;
isLastSibling(): bool;
isLazy(): bool;
isLoading(): bool;
isSelected(): bool;
isStatusNode(): bool;
isVisible(): bool;
makeVisible(): bool;
move(targetNode: DynaTreeNode, mode: string): bool;
reload(force: bool): void;
hasChildren(): boolean;
isActive(): boolean;
isChildOf(otherNode: DynaTreeNode): boolean;
isDescendantOf(otherNode: DynaTreeNode): boolean;
isExpanded(): boolean;
isFirstSibling(): boolean;
isFocused(): boolean;
isLastSibling(): boolean;
isLazy(): boolean;
isLoading(): boolean;
isSelected(): boolean;
isStatusNode(): boolean;
isVisible(): boolean;
makeVisible(): boolean;
move(targetNode: DynaTreeNode, mode: string): boolean;
reload(force: boolean): void;
remove(): void;
removeChildren(): void;
render(useEffects: bool, includeInvisible: bool): void;
render(useEffects: bool, 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?: bool);
sortChildren(cmp?: (a: DynaTreeNode, b: DynaTreeNode) =>number, deep?: boolean);
toDict(recursive: bool, callback?: (node: any) =>any): any;
toggleExpand(): void;
toggleSelect(): void;
visit(fn: (node: DynaTreeNode) =>bool, includeSelf: bool): void;
visitParents(fn: (node: DynaTreeNode) =>bool, includeSelf: bool): void;
visit(fn: (node: DynaTreeNode) =>bool, includeSelf: boolean): void;
visitParents(fn: (node: DynaTreeNode) =>bool, includeSelf: boolean): void;
}
interface DynatreeOptions {
@@ -100,18 +100,18 @@ interface DynatreeOptions {
children?: DynaTreeDataModel[]; // Init tree structure from this object array.
initId?: string; // Init tree structure from a <ul> element with this ID.
initAjax?: JQueryAjaxSettings; // Ajax options used to initialize the tree strucuture.
autoFocus?: bool; // Set focus to first child, when expanding or lazy-loading.
keyboard?: bool; // Support keyboard navigation.
persist?: bool; // Persist expand-status to a cookie
autoCollapse?: bool; // Automatically collapse all siblings, when a node is expanded.
autoFocus?: boolean; // Set focus to first child, when expanding or lazy-loading.
keyboard?: boolean; // Support keyboard navigation.
persist?: boolean; // Persist expand-status to a cookie
autoCollapse?: boolean; // Automatically collapse all siblings, when a node is expanded.
clickFolderMode?: number; // 1:activate, 2:expand, 3:activate and expand
activeVisible?: bool; // Make sure, active nodes are visible (expanded).
checkbox?: bool; // Show checkboxes.
activeVisible?: boolean; // Make sure, active nodes are visible (expanded).
checkbox?: boolean; // Show checkboxes.
selectMode?: number; // 1:single, 2:multi, 3:multi-hier
fx?: any; // Animations, e.g. null or { height: "toggle", duration: 200 }
noLink?: bool; // Use <span> instead of <a> tags for all nodes
noLink?: boolean; // Use <span> instead of <a> tags for all nodes
debugLevel?: number; // 0:quiet, 1:normal, 2:debug
generateIds?: bool; // Generate id attributes like <span id='dynatree-id-KEY'>
generateIds?: boolean; // Generate id attributes like <span id='dynatree-id-KEY'>
idPrefix?: string; // Used to generate node id's like <span id="dynatree-id-<key>">.
keyPathSeparator?: string; // Used by node.getKeyPath() and tree.loadKeyPath().
cookieId?: string; // Choose a more unique name, to allow multiple trees.
@@ -127,12 +127,12 @@ interface DynatreeOptions {
// Low level event handlers: onEvent(dtnode, event): return false, to stop default processing
onClick?: (dtnode: DynaTreeNode, event: Event) =>bool; // null: generate focus, expand, activate, select events.
onDblClick?: (dtnode: DynaTreeNode, event: Event) =>bool; // (No default actions.)
onKeydown?: (dtnode: DynaTreeNode, event: Event) =>bool; // null: generate keyboard navigation (focus, expand, activate).
onKeypress?: (dtnode: DynaTreeNode, event: Event) =>bool; // (No default actions.)
onFocus?: (dtnode: DynaTreeNode, event: Event) =>bool; // null: set focus to node.
onBlur?: (dtnode: DynaTreeNode, event: Event) =>bool; // null: remove focus from node.
onClick?: (dtnode: DynaTreeNode, event: Event) =>boolean; // null: generate focus, expand, activate, select events.
onDblClick?: (dtnode: DynaTreeNode, event: Event) =>boolean; // (No default actions.)
onKeydown?: (dtnode: DynaTreeNode, event: Event) =>boolean; // null: generate keyboard navigation (focus, expand, activate).
onKeypress?: (dtnode: DynaTreeNode, event: Event) =>boolean; // (No default actions.)
onFocus?: (dtnode: DynaTreeNode, event: Event) =>boolean; // null: set focus to node.
onBlur?: (dtnode: DynaTreeNode, event: Event) =>boolean; // null: remove focus from node.
// Pre-event handlers onQueryEvent(flag, dtnode): return false, to stop processing
onQueryActivate?: (flag: string, dtnode: DynaTreeNode) =>void; // Callback(flag, dtnode) before a node is (de)activated.
@@ -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: bool) =>void;// Callback(isReloading, isError) when tree was (re)loaded.
onPostInit?: (isReloading: bool, 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.
@@ -155,19 +155,19 @@ interface DynatreeOptions {
interface DynaTreeDataModel {
title: string; // (required) Displayed name of the node (html is allowed here)
key?: string; // May be used with activate(), select(), find(), ...
isFolder?: bool; // Use a folder icon. Also the node is expandable but not selectable.
isLazy?: bool; // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
isFolder?: boolean; // Use a folder icon. Also the node is expandable but not selectable.
isLazy?: boolean; // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
tooltip?: string; // Show this popup text.
href?: string; // Added to the generated <a> tag.
icon?: string; // Use a custom image (filename relative to tree.options.imagePath). 'null' for default icon, 'false' for no icon.
addClass?: string; // Class name added to the node's span tag.
noLink?: bool; // Use <span> instead of <a> tag for this node
activate?: bool; // Initial active status.
focus?: bool; // Initial focused status.
expand?: bool; // Initial expanded status.
select?: bool; // Initial selected status.
hideCheckbox?: bool; // Suppress checkbox display for this node.
unselectable?: bool; // Prevent selection.
noLink?: boolean; // Use <span> instead of <a> tag for this node
activate?: boolean; // Initial active status.
focus?: boolean; // Initial focused status.
expand?: boolean; // Initial expanded status.
select?: boolean; // Initial selected status.
hideCheckbox?: boolean; // Suppress checkbox display for this node.
unselectable?: boolean; // Prevent selection.
// The following attributes are only valid if passed to some functions:
children?: DynaTreeDataModel[]; // Array of child nodes.
// NOTE: we can also add custom attributes here.
@@ -176,7 +176,7 @@ interface DynaTreeDataModel {
interface DynaTreeDNDOptions {
autoExpandMS?: number; // Expand nodes after n milliseconds of hovering.
preventVoidMoves?: bool; // Prevent dropping nodes 'before self', etc.
preventVoidMoves?: boolean; // Prevent dropping nodes 'before self', etc.
// Make tree nodes draggable:
@@ -201,7 +201,7 @@ interface DynaTreeStringsOptions {
interface DynaTreeAjaxOptions {
cache?: bool; // false: Append random '_' argument to the request url to prevent caching.
cache?: boolean; // false: Append random '_' argument to the request url to prevent caching.
timeout?: number; // >0: Make sure we get an ajax error for invalid URLs
dataType?: string; // Expect json format and pass json object to callbacks.
}

View File

@@ -80,7 +80,7 @@ interface IELangDB {
cache?: any;
delegates?: IELangDBDelegates;
events?: IELangDBEvents;
isInitialized?: bool;
isInitialized?: boolean;
options?: IELangDBOptions;
name?: string;
@@ -149,7 +149,7 @@ interface IELangBase {
btnTooltips?: string[]): void;
appendAsLastChild(node: JQuery, element: JQuery): JQuery;
getLastChild(node: JQuery): JQuery;
isRdoChecked(eSrc: HTMLElement, rdoId: string): bool;
isRdoChecked(eSrc: HTMLElement, rdoId: string): boolean;
processCommand(command: string): JQuery;
setOptions(options: any): void;
}
@@ -183,7 +183,7 @@ interface IELangSearch extends IELangBase {
defaults: IELangSearchDefaults;
delegates: IELangSearchDelegates;
events: IELangSearchEvents;
isSearchInExp: bool;
isSearchInExp: boolean;
initialize(target: HTMLElement, options: any): void;
createContent(): void;

View File

@@ -7,16 +7,16 @@
/// <reference path="../jquery/jquery.d.ts"/>
interface JQueryFormOptions extends JQueryAjaxSettings {
beforeSerialize?: ($form: JQuery, options: JQueryFormOptions) => bool;
beforeSubmit?: (formData: any[], $form: JQuery, options: JQueryFormOptions) => bool;
clearForm?: bool;
forceSync?: bool;
iframe?: bool;
beforeSerialize?: ($form: JQuery, options: JQueryFormOptions) => boolean;
beforeSubmit?: (formData: any[], $form: JQuery, options: JQueryFormOptions) => boolean;
clearForm?: boolean;
forceSync?: boolean;
iframe?: boolean;
iframeSrc?: string;
iframeTarget?: any;
replaceTarget?: bool;
resetForm?: bool;
semantic?: bool;
replaceTarget?: boolean;
resetForm?: boolean;
semantic?: boolean;
target?: any;
uploadProgress?: (event: ProgressEvent, position: number, total: number, percentComplete: number) => void;
}
@@ -27,11 +27,11 @@ interface JQueryForm {
}
interface JQueryFormWithDebug extends JQueryForm {
debug: bool;
debug: boolean;
}
interface JQueryStatic {
fieldValue(element: Element, successful?: bool): string;
fieldValue(element: Element, successful?: boolean): string;
}
interface JQuery {
@@ -39,12 +39,12 @@ interface JQuery {
ajaxSubmit: JQueryFormWithDebug;
formSerialize(): string;
fieldSerialize(): string;
fieldValue(successful?: bool): string[];
fieldValue(successful?: boolean): string[];
resetForm(): JQuery;
clearForm(): JQuery;
clearFields(): JQuery;
ajaxFormUnbind: () => JQuery;
formToArray: (semantic?: bool, elements?: Element[]) => any[];
enable: (enable?: bool) => JQuery;
selected: (select?: bool) => JQuery;
enable: (enable?: boolean) => JQuery;
selected: (select?: boolean) => JQuery;
}

View File

@@ -7,15 +7,15 @@
/// <reference path='../jquery/jquery.d.ts'/>
interface JNotifyInitOptions {
oneAtTime?: bool;
oneAtTime?: boolean;
appendType?: string;
}
interface JNotifyOptions {
text?: string;
type?: string;
showIcon?: bool;
permanent?: bool;
showIcon?: boolean;
permanent?: boolean;
disappearTime?: number;
}

View File

@@ -10,12 +10,12 @@ interface NotyOptions {
theme?: string;
type?: string;
text?: string;
dismissQueue?: bool;
dismissQueue?: boolean;
template?: string;
animation?: NotyAnimationOptions;
timeout?: number;
force?: bool;
modal?: bool;
force?: boolean;
modal?: boolean;
closeWith?: Array;
callback?: NotyCallbackOptions;
buttons?: any;
@@ -62,6 +62,6 @@ declare var noty: {
setType(type: string);
setTimeout(timeout: number);
closed: bool;
shown: bool;
closed: boolean;
shown: boolean;
}

View File

@@ -21,7 +21,7 @@ interface ScrollToOptions {
/**
* If true, the margin of the target element will be deducted from the final position.
*/
margin?: bool;
margin?: boolean;
/**
* Add/deduct from the end position.
* One number for both axes or { top:x, left:y }.
@@ -36,7 +36,7 @@ interface ScrollToOptions {
* If true, and both axis are given.
* The 2nd axis will only be animated after the first one ends.
*/
queue?: bool;
queue?: boolean;
/**
* Function to be called after the scrolling ends.
*/

View File

@@ -17,7 +17,7 @@ interface SimplePaginationOptions {
prevText?: string;
nextText?: string;
cssStyle?: string;
selectOnClick?: bool;
selectOnClick?: boolean;
onPageClick?: (interger) => void;
onInit?: () => void;
}

View File

@@ -7,12 +7,12 @@
interface ITagsManagerOptions {
prefilled?: any;
CapitalizeFirstLetter?: bool;
preventSubmitOnEnter?: bool;
isClearInputOnEsc?: bool;
typeahead?: bool;
CapitalizeFirstLetter?: boolean;
preventSubmitOnEnter?: boolean;
isClearInputOnEsc?: boolean;
typeahead?: boolean;
typeaheadAjaxSource?: string;
typeaheadAjaxPolling?: bool;
typeaheadAjaxPolling?: boolean;
typeaheadDelegate?: Function;
typeaheadOverrides?: ITypeaheadOverrides;
typeaheadSource?: any;
@@ -24,7 +24,7 @@ interface ITagsManagerOptions {
blinkBGColor_2?: string;
hiddenTagListName?: string;
hiddenTagListId?: string;
deleteTagsOnBackspace?: bool;
deleteTagsOnBackspace?: boolean;
tagsContainer?: HTMLElement;
tagCloseIcon?: string;
tagClass?: string;
@@ -58,7 +58,7 @@ interface ITagsManager {
empty(): void;
refreshHiddenTagList(): void;
spliceTag(tagId: number, eventData: any): void;
pushTag(tag: string, objToPush: any, isValid: bool): void;
pushTag(tag: string, objToPush: any, isValid: boolean): void;
setOptions(options: ITagsManagerOptions): void;
setContext(context: JQuery, tagToManipulate?: string): void;

View File

@@ -22,8 +22,8 @@ var date1: Date = jQuery.timeago.parse("2008-07-17T09:24:17Z");
var date2: Date = jQuery.timeago.datetime(jQuery("abbr#some_id"));
var date3: Date = jQuery.timeago.datetime(document.getElementById("some_id"));
var isTime1: bool = jQuery.timeago.isTime(jQuery("abbr#some_id"));
var isTime2: bool = jQuery.timeago.isTime(document.getElementById("some_id"));
var isTime1: boolean = jQuery.timeago.isTime(jQuery("abbr#some_id"));
var isTime2: boolean = jQuery.timeago.isTime(document.getElementById("some_id"));
// Settings

View File

@@ -8,7 +8,7 @@
interface TimeagoSetings {
refreshMillis?: number;
allowFuture?: bool;
allowFuture?: boolean;
strings?: {
prefixAgo?: string;
prefixFromNow?: string;
@@ -45,8 +45,8 @@ interface TimeagoStatic {
parse(iso8601: string): Date;
datetime(element: Element): Date;
datetime(element: JQuery): Date;
isTime(element: Element): bool;
isTime(element: JQuery): bool;
isTime(element: Element): boolean;
isTime(element: JQuery): boolean;
}
interface Timeago {

View File

@@ -31,10 +31,10 @@ interface TimePickerOptions {
timeSeparator?: string; // The character to use to separate hours and minutes.
periodSeparator?: string; // The character to use to separate the time from the time period.
showPeriod?: bool; // Define whether or not to show AM/PM with selected time
showPeriodLabels?: bool; // Show the AM/PM labels on the left of the time picker
showLeadingZero?: bool; // Define whether or not to show a leading zero for hours < 10. [true/false]
showMinutesLeadingZero?: bool; // Define whether or not to show a leading zero for minutes < 10.
showPeriod?: boolean; // Define whether or not to show AM/PM with selected time
showPeriodLabels?: boolean; // Show the AM/PM labels on the left of the time picker
showLeadingZero?: boolean; // Define whether or not to show a leading zero for hours < 10. [true/false]
showMinutesLeadingZero?: boolean; // Define whether or not to show a leading zero for minutes < 10.
altField?: string; // Selector for an alternate field to store selected time into
defaultTime?: string; // Used as default time when input field is empty or for inline timePicker
// (set to 'now' for the current time, '' for no highlighted time)
@@ -50,14 +50,14 @@ interface TimePickerOptions {
minutes?: TimePickerMinutes;
rows?: number; // number of rows for the input tables, minimum 2, makes more sense if you use multiple of 2
// 2011-08-05 0.2.4
showHours?: bool; // display the hours section of the dialog
showMinutes?: bool; // display the minute section of the dialog
optionalMinutes?: bool; // optionally parse inputs of whole hours with minutes omitted
showHours?: boolean; // display the hours section of the dialog
showMinutes?: boolean; // display the minute section of the dialog
optionalMinutes?: boolean; // optionally parse inputs of whole hours with minutes omitted
// buttons
showCloseButton?: bool; // shows an OK button to confirm the edit
showNowButton?: bool; // Shows the 'now' button
showDeselectButton?: bool; // Shows the deselect time button
showCloseButton?: boolean; // shows an OK button to confirm the edit
showNowButton?: boolean; // Shows the 'now' button
showDeselectButton?: boolean; // Shows the deselect time button
}

View File

@@ -61,9 +61,9 @@ function test_signatures() {
TestObject.transition(options);
TestObject.transition(options, 500);
TestObject.transition(options, 'in');
TestObject.transition(options, function () { var test: bool = true; });
TestObject.transition(options, function () { var test: boolean = true; });
TestObject.transition(options, 500, 'out');
TestObject.transition(options, 500, 'in-out', function () { var test: bool = true; });
TestObject.transition(options, 500, 'in-out', function () { var test: boolean = true; });
}
function test_opacity() {

View File

@@ -21,7 +21,7 @@ interface JQueryLayout {
toggle(pane: any): any;
open(pane: any): any;
close(pane: any): any;
show(pane: any, openPane?: bool): any;
show(pane: any, openPane?: boolean): any;
hide(pane: any): any;
sizePane(pane: any, sizeInPixels: number): any;
resizeContent(pane: any): any;

View File

@@ -7,19 +7,19 @@
/// <reference path="../jquery/jquery.d.ts"/>
interface ValidationOptions {
debug?: bool;
debug?: boolean;
submitHandler?: Function;
invalidHandler?: Function;
ignore?: any;
rules?: any;
messages?: any;
groups?: any;
onsubmit?: bool;
onfocusout?: bool;
onkeyup?: bool;
onclick?: bool;
focusInvalid?: bool;
focusCleanup?: bool;
onsubmit?: boolean;
onfocusout?: boolean;
onkeyup?: boolean;
onclick?: boolean;
focusInvalid?: boolean;
focusCleanup?: boolean;
meta?: string;
errorClass?: string;
validClass?: string;
@@ -32,13 +32,13 @@ interface ValidationOptions {
success?: any;
highlight?: Function;
unhighlight?: Function;
ignoreTitle?: bool;
ignoreTitle?: boolean;
}
interface Validator {
format(template: string, ...arguments: string[]): string;
form(): bool;
element(element: any): bool;
form(): boolean;
element(element: any): boolean;
resetForm(): void;
showErrors(errors: any): void;
numberOfInvalids(): number;
@@ -50,7 +50,7 @@ interface Validator {
interface JQuery {
validate(options?: ValidationOptions): Validator;
valid(): bool;
valid(): boolean;
rules(): any;
rules(methodName: string): any;
rules(methodName: string, rules: any): any;

View File

@@ -8,8 +8,8 @@
interface WatermarkOptions {
className?: string; // Default class name for all watermarks
useNative?: bool; // If true, plugin will detect and use native browser support for watermarks, if available. (e.g., WebKit's placeholder attribute.)
hideBeforeUnload?: bool; // If true, all watermarks will be hidden during the window beforeunload event.
useNative?: boolean; // If true, plugin will detect and use native browser support for watermarks, if available. (e.g., WebKit's placeholder attribute.)
hideBeforeUnload?: boolean; // If true, all watermarks will be hidden during the window beforeunload event.
}
interface Watermark {

View File

@@ -1572,7 +1572,7 @@ function test_hasClass() {
$("div#result3").append($("p").hasClass("selected"));
$('#mydiv').hasClass('foo');
// typescript has a bug to (bool).toString() - I'll comment this code until typescript team solve this problem.
// typescript has a bug to (boolean).toString() - I'll comment this code until typescript team solve this problem.
//$("div#result1").append($("p:first").hasClass("selected").toString());
//$("div#result2").append($("p:last").hasClass("selected").toString());
//$("div#result3").append($("p").hasClass("selected").toString());

View File

@@ -19,12 +19,12 @@ interface DialogEvents {
}
interface PopupOptions {
corners?: bool;
history?: bool;
corners?: boolean;
history?: boolean;
initSelector?: string;
overlayTheme?: string;
positionTo?: string;
shadow?: bool;
shadow?: boolean;
theme?: string;
tolerance?: string;
transition?: string;
@@ -37,14 +37,14 @@ interface PopupEvents {
}
interface FixedToolbarOptions {
visibleOnPageShow?: bool;
disablePageZoom?: bool;
visibleOnPageShow?: boolean;
disablePageZoom?: boolean;
transition?: string;
fullscreen?: bool;
tapToggle?: bool;
fullscreen?: boolean;
tapToggle?: boolean;
tapToggleBlacklist?: string;
hideDuringFocus?: string;
updatePagePadding?: bool;
updatePagePadding?: boolean;
supportBlacklist?: Function;
initSelector?: string;
}
@@ -54,13 +54,13 @@ interface FixedToolbarEvents {
}
interface ButtonOptions {
corners?: bool;
corners?: boolean;
icon?: string;
iconpos?: string;
iconshadow?: bool;
inline?: bool;
mini?: bool;
shadow?: bool;
iconshadow?: boolean;
inline?: boolean;
mini?: boolean;
shadow?: boolean;
theme?: string;
initSelector?: string;
}
@@ -70,7 +70,7 @@ interface ButtonEvents {
}
interface CollapsibleOptions {
collapsed?: bool;
collapsed?: boolean;
collapseCueText?: string;
collapsedIcon?: string;
contentTheme?: string;
@@ -79,8 +79,8 @@ interface CollapsibleOptions {
heading?: string;
iconpos?: string;
initSelector?: string;
inset?: bool;
mini?: bool;
inset?: boolean;
mini?: boolean;
theme?: string;
}
@@ -95,8 +95,8 @@ interface CollapsibleSetOptions {
expandedIcon?: string;
iconpos?: string;
initSelector?: string;
inset?: bool;
mini?: bool;
inset?: boolean;
mini?: boolean;
theme?: string;
}
@@ -105,10 +105,10 @@ interface CollapsibleSetEvents {
}
interface TextInputOptions {
disabled?: bool;
disabled?: boolean;
initSelector?: string;
mini?: bool;
preventFocusZoom?: bool;
mini?: boolean;
preventFocusZoom?: boolean;
theme?: string;
}
@@ -118,17 +118,17 @@ interface TextInputEvents {
interface SearchInputOptions {
clearSearchButtonText?: string;
disabled?: bool;
disabled?: boolean;
initSelector?: string;
mini?: bool;
mini?: boolean;
theme?: string;
}
interface SliderOptions {
disabled?: bool;
highlight?: bool;
disabled?: boolean;
highlight?: boolean;
initSelector?: string;
mini?: bool;
mini?: boolean;
theme?: string;
trackTheme?: string;
}
@@ -140,7 +140,7 @@ interface SliderEvents {
}
interface CheckboxRadioOptions {
mini?: bool;
mini?: boolean;
theme?: string;
}
@@ -149,17 +149,17 @@ interface CheckboxRadioEvents {
}
interface SelectMenuOptions {
corners?: bool;
corners?: boolean;
icon?: string;
iconpos?: string;
iconshadow?: bool;
iconshadow?: boolean;
initSelector?: string;
inline?: bool;
mini?: bool;
nativeMenu?: bool;
inline?: boolean;
mini?: boolean;
nativeMenu?: boolean;
overlayTheme?: string;
preventFocusZoom?: bool;
shadow?: bool;
preventFocusZoom?: boolean;
shadow?: boolean;
theme?: string;
}
@@ -170,13 +170,13 @@ interface SelectMenuEvents {
interface ListViewOptions {
countTheme?: string;
dividerTheme?: string;
filter?: bool;
filter?: boolean;
filterCallback?: Function;
filterPlaceholder?: string;
filterTheme?: string;
headerTheme?: string;
initSelector?: string;
inset?: bool;
inset?: boolean;
splitIcon?: string;
splitTheme?: string;
theme?: string;
@@ -189,28 +189,28 @@ interface ListViewEvents {
interface JQueryMobileOptions {
activeBtnClass?: string;
activePageClass?: string;
ajaxEnabled?: bool;
allowCrossDomainPages?: bool;
autoInitializePage?: bool;
ajaxEnabled?: boolean;
allowCrossDomainPages?: boolean;
autoInitializePage?: boolean;
buttonMarkup;
defaultDialogTransition?: string;
defaultPageTransition?: string;
getMaxScrollForTransition?: number;
gradeA?: Function;
hashListeningEnabled?: bool;
ignoreContentEnabled?: bool;
linkBindingEnabled?: bool;
loadingMessageTextVisible?: bool;
hashListeningEnabled?: boolean;
ignoreContentEnabled?: boolean;
linkBindingEnabled?: boolean;
loadingMessageTextVisible?: boolean;
loadingMessageTheme?: string;
maxTransitionWidth?: number;
minScrollBack?: number;
ns?: number;
pageLoadErrorMessage?: string;
pageLoadErrorMessageTheme?: string;
phonegapNavigationEnabled?: bool;
pushStateEnabled?: bool;
phonegapNavigationEnabled?: boolean;
pushStateEnabled?: boolean;
subPageUrlKey?: string;
touchOverflowEnabled?: bool;
touchOverflowEnabled?: boolean;
transitionFallbacks;
}
@@ -251,15 +251,15 @@ interface JQueryMobileEvents {
}
interface ChangePageOptions {
allowSamePageTransition?: bool;
changeHash?: bool;
allowSamePageTransition?: boolean;
changeHash?: boolean;
data?: any;
dataUrl?: string;
pageContainer?: JQuery;
reloadPage?: bool;
reverse?: bool;
reloadPage?: boolean;
reverse?: boolean;
role?: string;
showLoadMsg?: bool;
showLoadMsg?: boolean;
transition?: string;
type?: string;
}
@@ -268,9 +268,9 @@ interface LoadPageOptions {
data?: any;
loadMsgDelay?: number;
pageContainer?: JQuery;
reloadPage?: bool;
reloadPage?: boolean;
role?: string;
showLoadMsg?: bool;
showLoadMsg?: boolean;
type?: string;
}
@@ -365,7 +365,7 @@ interface JQuery {
selectmenu(): JQuery;
selectmenu(command: string): JQuery;
selectmenu(command: string, update: bool): JQuery;
selectmenu(command: string, update: boolean): JQuery;
selectmenu(options: CheckboxRadioOptions): JQuery;
selectmenu(events: CheckboxRadioEvents): JQuery;

438
jqueryui/jqueryui.d.ts vendored
View File

@@ -9,59 +9,59 @@
declare module JQueryUI {
// Accordion //////////////////////////////////////////////////
interface AccordionOptions {
active?: any; // bool or number
interface AccordionOptions {
active?: any; // boolean or number
animate?: any; // bool, number, string or object
collapsible?: bool;
disabled?: bool;
collapsible?: boolean;
disabled?: boolean;
event?: string;
header?: string;
heightStyle?: string;
icons?: any;
icons?: any;
}
interface AccordionUIParams {
interface AccordionUIParams {
newHeader: JQuery;
oldHeader: JQuery;
newPanel: JQuery;
oldPanel: JQuery;
oldPanel: JQuery;
}
interface AccordionEvent {
(event: Event, ui: AccordionUIParams): void;
interface AccordionEvent {
(event: Event, ui: AccordionUIParams): void;
}
interface AccordionEvents {
interface AccordionEvents {
activate?: AccordionEvent;
beforeActivate?: AccordionEvent;
create?: AccordionEvent;
create?: AccordionEvent;
}
interface Accordion extends Widget, AccordionOptions, AccordionEvents {
interface Accordion extends Widget, AccordionOptions, AccordionEvents {
}
// Autocomplete //////////////////////////////////////////////////
interface AutocompleteOptions {
interface AutocompleteOptions {
appendTo?: any; //Selector;
autoFocus?: bool;
autoFocus?: boolean;
delay?: number;
disabled?: bool;
disabled?: boolean;
minLength?: number;
position?: string;
source?: any; // [], string or ()
}
interface AutocompleteUIParams {
interface AutocompleteUIParams {
}
interface AutocompleteEvent {
(event: Event, ui: AutocompleteUIParams): void;
interface AutocompleteEvent {
(event: Event, ui: AutocompleteUIParams): void;
}
interface AutocompleteEvents {
interface AutocompleteEvents {
change?: AutocompleteEvent;
close?: AutocompleteEvent;
create?: AutocompleteEvent;
@@ -69,44 +69,44 @@ declare module JQueryUI {
open?: AutocompleteEvent;
response?: AutocompleteEvent;
search?: AutocompleteEvent;
select?: AutocompleteEvent;
select?: AutocompleteEvent;
}
interface Autocomplete extends Widget, AutocompleteOptions, AutocompleteEvents {
escapeRegex: (string) => string;
interface Autocomplete extends Widget, AutocompleteOptions, AutocompleteEvents {
escapeRegex: (string) => string;
}
// Button //////////////////////////////////////////////////
interface ButtonOptions {
disabled?: bool;
interface ButtonOptions {
disabled?: boolean;
icons?: any;
label?: string;
text?: bool;
text?: boolean;
}
interface Button extends Widget, ButtonOptions {
interface Button extends Widget, ButtonOptions {
}
// Datepicker //////////////////////////////////////////////////
interface DatepickerOptions {
interface DatepickerOptions {
altFieldType?: any; // Selecotr, jQuery or Element
altFormat?: string;
appendText?: string;
autoSize?: bool;
autoSize?: boolean;
beforeShow?: (input: Element, inst: any) => void;
beforeShowDay?: (date: Date) => void;
buttonImage?: string;
buttonImageOnly?: bool;
buttonImageOnly?: boolean;
buttonText?: string;
calculateWeek?: () => any;
changeMonth?: bool;
changeYear?: bool;
changeMonth?: boolean;
changeYear?: boolean;
closeText?: string;
constrainInput?: bool;
constrainInput?: boolean;
currentText?: string;
dateFormat?: string;
dayNames?: string[];
@@ -115,86 +115,86 @@ declare module JQueryUI {
defaultDateType?: any; // Date, number or string
duration?: string;
firstDay?: number;
gotoCurrent?: bool;
hideIfNoPrevNext?: bool;
isRTL?: bool;
gotoCurrent?: boolean;
hideIfNoPrevNext?: boolean;
isRTL?: boolean;
maxDate?: any; // Date, number or string
minDate?: any; // Date, number or string
monthNames?: string[];
monthNamesShort?: string[];
navigationAsDateFormat?: bool;
navigationAsDateFormat?: boolean;
nextText?: string;
numberOfMonths?: any; // number or []
onChangeMonthYear?: (year: number, month: number, inst: any) => void;
onClose?: (dateText: string, inst: any) => void;
onSelect?: (dateText: string, inst: any) => void;
prevText?: string;
selectOtherMonths?: bool;
selectOtherMonths?: boolean;
shortYearCutoff?: any; // number or string
showAnim?: string;
showButtonPanel?: bool;
showButtonPanel?: boolean;
showCurrentAtPos?: number;
showMonthAfterYear?: bool;
showMonthAfterYear?: boolean;
showOn?: string;
showOptions?: any; // TODO
showOtherMonths?: bool;
showWeek?: bool;
showOtherMonths?: boolean;
showWeek?: boolean;
stepMonths?: number;
weekHeader?: string;
yearRange?: string;
yearSuffix?: string;
yearSuffix?: string;
}
interface DatepickerFormatDateOptions {
interface DatepickerFormatDateOptions {
dayNamesShort?: string[];
dayNames?: string[];
monthNamesShort?: string[];
monthNames?: string[];
monthNames?: string[];
}
interface Datepicker extends Widget, DatepickerOptions {
interface Datepicker extends Widget, DatepickerOptions {
regional: { [languageCod3: string]: any; };
setDefaults(defaults: DatepickerOptions);
formatDate(format: string, date: Date, settings?: DatepickerFormatDateOptions): string;
parseDate(format: string, date: string, settings?: DatepickerFormatDateOptions): Date;
iso8601Week(date: Date): void;
noWeekends(): void;
noWeekends(): void;
}
// Dialog //////////////////////////////////////////////////
interface DialogOptions {
autoOpen?: bool;
interface DialogOptions {
autoOpen?: boolean;
buttons?: any; // object or []
closeOnEscape?: bool;
closeOnEscape?: boolean;
closeText?: string;
dialogClass?: string;
disabled?: bool;
draggable?: bool;
disabled?: boolean;
draggable?: boolean;
height?: any; // number or string
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
modal?: bool;
modal?: boolean;
position?: any; // object, string or []
resizable?: bool;
resizable?: boolean;
show?: any; // number, string or object
stack?: bool;
stack?: boolean;
title?: string;
width?: any; // number or string
zIndex?: number;
zIndex?: number;
}
interface DialogUIParams {
interface DialogUIParams {
}
interface DialogEvent {
(event: Event, ui: DialogUIParams): void;
interface DialogEvent {
(event: Event, ui: DialogUIParams): void;
}
interface DialogEvents {
interface DialogEvents {
beforeClose?: DialogEvent;
close?: DialogEvent;
create?: DialogEvent;
@@ -205,28 +205,28 @@ declare module JQueryUI {
open?: DialogEvent;
resize?: DialogEvent;
resizeStart?: DialogEvent;
resizeStop?: DialogEvent;
resizeStop?: DialogEvent;
}
interface Dialog extends Widget, DialogOptions, DialogEvents {
interface Dialog extends Widget, DialogOptions, DialogEvents {
}
// Draggable //////////////////////////////////////////////////
interface DraggableEventUIParams {
interface DraggableEventUIParams {
helper: JQuery;
position: { top: number; left: number; };
offset: { top: number; left: number; };
offset: { top: number; left: number; };
}
interface DraggableEvent {
(event: Event, ui: DraggableEventUIParams): void;
interface DraggableEvent {
(event: Event, ui: DraggableEventUIParams): void;
}
interface DraggableOptions {
disabled?: bool;
addClasses?: bool;
interface DraggableOptions {
disabled?: boolean;
addClasses?: boolean;
appendTo?: any;
axis?: string;
cancel?: string;
@@ -241,226 +241,226 @@ declare module JQueryUI {
helper?: any;
iframeFix?: any;
opacity?: number;
refreshPositions?: bool;
refreshPositions?: boolean;
revert?: any;
revertDuration?: number;
scope?: string;
scroll?: bool;
scroll?: boolean;
scrollSensitivity?: number;
scrollSpeed?: number;
snap?: any;
snapMode?: string;
snapTolerance?: number;
stack?: string;
zIndex?: number;
zIndex?: number;
}
interface DraggableEvents {
interface DraggableEvents {
create?: DraggableEvent;
start?: DraggableEvent;
drag?: DraggableEvent;
stop?: DraggableEvent;
stop?: DraggableEvent;
}
interface Draggable extends Widget, DraggableOptions, DraggableEvent {
interface Draggable extends Widget, DraggableOptions, DraggableEvent {
}
// Droppable //////////////////////////////////////////////////
interface DroppableEventUIParam {
interface DroppableEventUIParam {
draggable: JQuery;
helper: JQuery;
position: { top: number; left: number; };
offset: { top: number; left: number; };
offset: { top: number; left: number; };
}
interface DroppableEvent {
(event: Event, ui: DroppableEventUIParam): void;
interface DroppableEvent {
(event: Event, ui: DroppableEventUIParam): void;
}
interface DroppableOptions {
disabled?: bool;
interface DroppableOptions {
disabled?: boolean;
accept?: any;
activeClass?: string;
greedy?: bool;
greedy?: boolean;
hoverClass?: string;
scope?: string;
tolerance?: string;
tolerance?: string;
}
interface DroppableEvents {
interface DroppableEvents {
create?: DroppableEvent;
activate?: DroppableEvent;
deactivate?: DroppableEvent;
over?: DroppableEvent;
out?: DroppableEvent;
drop?: DroppableEvent;
drop?: DroppableEvent;
}
interface Droppable extends Widget, DroppableOptions, DroppableEvents {
interface Droppable extends Widget, DroppableOptions, DroppableEvents {
}
// Menu //////////////////////////////////////////////////
interface MenuOptions {
disabled?: bool;
interface MenuOptions {
disabled?: boolean;
icons?: any;
menus?: string;
position?: any; // TODO
role?: string;
role?: string;
}
interface MenuUIParams {
interface MenuUIParams {
}
interface MenuEvent {
(event: Event, ui: MenuUIParams): void;
interface MenuEvent {
(event: Event, ui: MenuUIParams): void;
}
interface MenuEvents {
interface MenuEvents {
blur?: MenuEvent;
create?: MenuEvent;
focus?: MenuEvent;
select?: MenuEvent;
select?: MenuEvent;
}
interface Menu extends Widget, MenuOptions, MenuEvents {
interface Menu extends Widget, MenuOptions, MenuEvents {
}
// Progressbar //////////////////////////////////////////////////
interface ProgressbarOptions {
disabled?: bool;
value?: number;
interface ProgressbarOptions {
disabled?: boolean;
value?: number;
}
interface ProgressbarUIParams {
interface ProgressbarUIParams {
}
interface ProgressbarEvent {
(event: Event, ui: ProgressbarUIParams): void;
interface ProgressbarEvent {
(event: Event, ui: ProgressbarUIParams): void;
}
interface ProgressbarEvents {
interface ProgressbarEvents {
change?: ProgressbarEvent;
complete?: ProgressbarEvent;
create?: ProgressbarEvent;
create?: ProgressbarEvent;
}
interface Progressbar extends Widget, ProgressbarOptions, ProgressbarEvents {
interface Progressbar extends Widget, ProgressbarOptions, ProgressbarEvents {
}
// Resizable //////////////////////////////////////////////////
interface ResizableOptions {
interface ResizableOptions {
alsoResize?: any; // Selector, JQuery or Element
animate?: bool;
animate?: boolean;
animateDuration?: any; // number or string
animateEasing?: string;
aspectRatio?: any; // bool or number
autoHide?: bool;
aspectRatio?: any; // boolean or number
autoHide?: boolean;
cancel?: string;
containment?: any; // Selector, Element or string
delay?: number;
disabled?: bool;
disabled?: boolean;
distance?: number;
ghost?: bool;
ghost?: boolean;
grid?: any;
handles?: any; // string or object
helper?: string;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
minWidth?: number;
}
interface ResizableUIParams {
interface ResizableUIParams {
element: JQuery;
helper: JQuery;
originalElement: JQuery;
originalPosition: any;
originalSize: any;
position: any;
size: any;
size: any;
}
interface ResizableEvent {
(event: Event, ui: ResizableUIParams): void;
interface ResizableEvent {
(event: Event, ui: ResizableUIParams): void;
}
interface ResizableEvents {
interface ResizableEvents {
resize?: ResizableEvent;
start?: ResizableEvent;
stop?: ResizableEvent;
stop?: ResizableEvent;
}
interface Resizable extends Widget, ResizableOptions, ResizableEvents {
interface Resizable extends Widget, ResizableOptions, ResizableEvents {
}
// Selectable //////////////////////////////////////////////////
interface SelectableOptions {
autoRefresh?: bool;
interface SelectableOptions {
autoRefresh?: boolean;
cancel?: string;
delay?: number;
disabled?: bool;
disabled?: boolean;
distance?: number;
filter?: string;
tolerance?: string;
tolerance?: string;
}
interface SelectableEvents {
interface SelectableEvents {
selected? (event: Event, ui: { selected?: Element; }): void;
selecting? (event: Event, ui: { selecting?: Element; }): void;
start? (event: Event, ui: any): void;
stop? (event: Event, ui: any): void;
unselected? (event: Event, ui: { unselected: Element; }): void;
unselecting? (event: Event, ui: { unselecting: Element; }): void;
unselecting? (event: Event, ui: { unselecting: Element; }): void;
}
interface Selectable extends Widget, SelectableOptions, SelectableEvents {
interface Selectable extends Widget, SelectableOptions, SelectableEvents {
}
// Slider //////////////////////////////////////////////////
interface SliderOptions {
interface SliderOptions {
animate?: any; // bool, string or number
disabled?: bool;
disabled?: boolean;
max?: number;
min?: number;
orientation?: string;
range?: any; // bool or string
range?: any; // boolean or string
step?: number;
// value?: number;
// values?: number[];
}
interface SliderUIParams {
interface SliderUIParams {
}
interface SliderEvent {
(event: Event, ui: SliderUIParams): void;
interface SliderEvent {
(event: Event, ui: SliderUIParams): void;
}
interface SliderEvents {
interface SliderEvents {
change?: SliderEvent;
create?: SliderEvent;
slide?: SliderEvent;
start?: SliderEvent;
stop?: SliderEvent;
stop?: SliderEvent;
}
interface Slider extends Widget, SliderOptions, SliderEvents {
interface Slider extends Widget, SliderOptions, SliderEvents {
}
// Sortable //////////////////////////////////////////////////
interface SortableOptions {
interface SortableOptions {
appendTo?: any; // jQuery, Element, Selector or string
axis?: string;
cancel?: string;
@@ -469,39 +469,39 @@ declare module JQueryUI {
cursor?: string;
cursorAt?: any;
delay?: number;
disabled?: bool;
disabled?: boolean;
distance?: number;
dropOnEmpty?: bool;
forceHelperSize?: bool;
forcePlaceholderSize?: bool;
dropOnEmpty?: boolean;
forceHelperSize?: boolean;
forcePlaceholderSize?: boolean;
grid?: number[];
handle?: any; // Selector or Element
items?: any; // Selector
opacity?: number;
placeholder?: string;
revert?: any; // bool or number
scroll?: bool;
revert?: any; // boolean or number
scroll?: boolean;
scrollSensitivity?: number;
scrollSpeed?: number;
tolerance?: string;
zIndex?: number;
zIndex?: number;
}
interface SortableUIParams {
interface SortableUIParams {
helper: JQuery;
item: JQuery;
offset: any;
position: any;
originalPosition: any;
sender: JQuery;
placeholder: JQuery;
placeholder: JQuery;
}
interface SortableEvent {
(event: Event, ui: SortableUIParams): void;
interface SortableEvent {
(event: Event, ui: SortableUIParams): void;
}
interface SortableEvents {
interface SortableEvents {
activate?: SortableEvent;
beforeStop?: SortableEvent;
change?: SortableEvent;
@@ -513,20 +513,20 @@ declare module JQueryUI {
sort?: SortableEvent;
start?: SortableEvent;
stop?: SortableEvent;
update?: SortableEvent;
update?: SortableEvent;
}
interface Sortable extends Widget, SortableOptions, SortableEvents {
interface Sortable extends Widget, SortableOptions, SortableEvents {
}
// Spinner //////////////////////////////////////////////////
interface SpinnerOptions {
interface SpinnerOptions {
culture?: string;
disabled?: bool;
disabled?: boolean;
icons?: any;
incremental?: any; // bool or ()
incremental?: any; // boolean or ()
max?: any; // number or string
min?: any; // number or string
numberFormat?: string;
@@ -534,179 +534,179 @@ declare module JQueryUI {
step?: any; // number or string
}
interface SpinnerUIParams {
interface SpinnerUIParams {
}
interface SpinnerEvent {
(event: Event, ui: SpinnerUIParams): void;
interface SpinnerEvent {
(event: Event, ui: SpinnerUIParams): void;
}
interface SpinnerEvents {
interface SpinnerEvents {
spin?: SpinnerEvent;
start?: SpinnerEvent;
stop?: SpinnerEvent;
stop?: SpinnerEvent;
}
interface Spinner extends Widget, SpinnerOptions, SpinnerEvents {
interface Spinner extends Widget, SpinnerOptions, SpinnerEvents {
}
// Tabs //////////////////////////////////////////////////
interface TabsOptions {
active?: any; // bool or number
collapsible?: bool;
disabled?: any; // bool or []
interface TabsOptions {
active?: any; // boolean or number
collapsible?: boolean;
disabled?: any; // boolean or []
event?: string;
heightStyle?: string;
hide?: any; // bool, number, string or object
show?: any; // bool, number, string or object
}
interface TabsUIParams {
interface TabsUIParams {
}
interface TabsEvent {
(event: Event, ui: TabsUIParams): void;
interface TabsEvent {
(event: Event, ui: TabsUIParams): void;
}
interface TabsEvents {
interface TabsEvents {
activate?: TabsEvent;
beforeActivate?: TabsEvent;
beforeLoad?: TabsEvent;
load?: TabsEvent;
load?: TabsEvent;
}
interface Tabs extends Widget, TabsOptions, TabsEvents {
interface Tabs extends Widget, TabsOptions, TabsEvents {
}
// Tooltip //////////////////////////////////////////////////
interface TooltipOptions {
interface TooltipOptions {
content?: any; // () or string
disabled?: bool;
disabled?: boolean;
hide?: any; // bool, number, string or object
items?: string;
position?: any; // TODO
show?: any; // bool, number, string or object
tooltipClass?: string;
track?: bool;
track?: boolean;
}
interface TooltipUIParams {
interface TooltipUIParams {
}
interface TooltipEvent {
(event: Event, ui: TooltipUIParams): void;
interface TooltipEvent {
(event: Event, ui: TooltipUIParams): void;
}
interface TooltipEvents {
interface TooltipEvents {
close?: TooltipEvent;
open?: TooltipEvent;
open?: TooltipEvent;
}
interface Tooltip extends Widget, TooltipOptions, TooltipEvents {
interface Tooltip extends Widget, TooltipOptions, TooltipEvents {
}
// Effects //////////////////////////////////////////////////
interface EffectOptions {
interface EffectOptions {
effect: string;
easing?: string;
duration: any;
complete: Function;
complete: Function;
}
interface BlindEffect {
direction?: string;
interface BlindEffect {
direction?: string;
}
interface BounceEffect {
interface BounceEffect {
distance?: number;
times?: number;
times?: number;
}
interface ClipEffect {
direction?: number;
interface ClipEffect {
direction?: number;
}
interface DropEffect {
direction?: number;
interface DropEffect {
direction?: number;
}
interface ExplodeEffect {
pieces?: number;
interface ExplodeEffect {
pieces?: number;
}
interface FadeEffect { }
interface FoldEffect {
interface FoldEffect {
size?: any;
horizFirst?: bool;
horizFirst?: boolean;
}
interface HighlightEffect {
color?: string;
interface HighlightEffect {
color?: string;
}
interface PuffEffect {
percent?: number;
interface PuffEffect {
percent?: number;
}
interface PulsateEffect {
times?: number;
interface PulsateEffect {
times?: number;
}
interface ScaleEffect {
interface ScaleEffect {
direction?: string;
origin?: string[];
percent?: number;
scale?: string;
scale?: string;
}
interface ShakeEffect {
interface ShakeEffect {
direction?: string;
distance?: number;
times?: number;
times?: number;
}
interface SizeEffect {
interface SizeEffect {
to?: any;
origin?: string[];
scale?: string;
scale?: string;
}
interface SlideEffect {
interface SlideEffect {
direction?: string;
distance?: number;
distance?: number;
}
interface TransferEffect {
interface TransferEffect {
className?: string;
to?: string;
to?: string;
}
interface JQueryPositionOptions {
interface JQueryPositionOptions {
my?: string;
at?: string;
of?: any;
collision?: string;
using?: Function;
within?: any;
within?: any;
}
// UI //////////////////////////////////////////////////
interface MouseOptions {
interface MouseOptions {
cancel?: string;
delay?: number;
distance?: number;
distance?: number;
}
interface keyCode {
interface keyCode {
BACKSPACE: number;
COMMA: number;
DELETE: number;
@@ -728,10 +728,10 @@ declare module JQueryUI {
RIGHT: number;
SPACE: number;
TAB: number;
UP: number;
UP: number;
}
interface UI {
interface UI {
mouse(method: string): JQuery;
mouse(options: MouseOptions): JQuery;
mouse(optionLiteral: string, optionName: string, optionValue: any): JQuery;
@@ -750,19 +750,19 @@ declare module JQueryUI {
spinner: Spinner;
tabs: Tabs;
tooltip: Tooltip;
version: string;
version: string;
}
// Widget //////////////////////////////////////////////////
interface WidgetOptions {
disabled?: bool;
interface WidgetOptions {
disabled?: boolean;
hide?: any;
show?: any;
show?: any;
}
interface Widget {
interface Widget {
(methodName: string): JQuery;
(options: WidgetOptions): JQuery;
(options: AccordionOptions): JQuery;
@@ -771,7 +771,7 @@ declare module JQueryUI {
(optionLiteral: string, optionName: string, optionValue: any): JQuery;
(name: string, prototype: any): JQuery;
(name: string, base: Function, prototype: any): JQuery;
(name: string, base: Function, prototype: any): JQuery;
}
////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@@ -10,30 +10,30 @@ interface JScrollPaneSettings {
* Whether arrows should be shown on the generated scroll pane. When set to false only the scrollbar
* track and drag will be shown, if set to true then arrows buttons will also be shown.
*/
showArrows?: bool;
showArrows?: boolean;
/**
* Whether the scrollpane should attempt to maintain it's position whenever it is reinitialised.
* If true then the viewport of the scrollpane will remain the same when it is reinitialised, if false
then the viewport will jump back up to the top when the scrollpane is reinitialised. See also stickToBottom and stickToRight.
*/
maintainPosition?: bool;
maintainPosition?: boolean;
/**
* If maintainPosition is true and the scrollpane is scrolled to the bottom then the scrollpane then the scrollpane will
* remain scrolled to the bottom even if new content is added to the pane which makes it taller.
*/
stickToBottom?: bool;
stickToBottom?: boolean;
/**
* If maintainPosition is true and the scrollpane is scrolled to its right edge then the scrollpane then the scrollpane
* will remain scrolled to the right edge even if new content is added to the pane which makes it wider.
*/
stickToRight?: bool;
stickToRight?: boolean;
/**
* Whether jScrollPane should automatically reinitialise itself periodically after you have initially initialised it.
* This can help with instances when the size of the content of the scrollpane (or the surrounding element) changes.
* However, it does involve an overhead of running a javascript function on a timer so it is recommended only to activate
* where necessary.
*/
autoReinitialise?: bool;
autoReinitialise?: boolean;
/**
* The number of milliseconds between each reinitialisation (if autoReinitialise is true).
*/
@@ -69,7 +69,7 @@ interface JScrollPaneSettings {
* the animateDuration and animateEase settings or if you want to exercise more complete control then you can override
* the animate API method. Demo.
*/
animateScroll?: bool;
animateScroll?: boolean;
/**
* The number of milliseconds taken to animate to a new position
*/
@@ -82,7 +82,7 @@ interface JScrollPaneSettings {
* Whether internal links on the page should be hijacked so that if they point so content within a jScrollPane then
* they automatically scroll the jScrollPane to the correct place.
*/
hijackInternalLinks?: bool;
hijackInternalLinks?: boolean;
/**
* The amount of space between the side of the content and the vertical scrollbar.
*/
@@ -106,7 +106,7 @@ interface JScrollPaneSettings {
/**
* Whether the arrow buttons should cause the jScrollPane to scroll while you are hovering over them.
*/
arrowScrollOnHover?: bool;
arrowScrollOnHover?: boolean;
/**
* Where the vertical arrows should appear relative to the vertical track.
*/
@@ -119,17 +119,17 @@ interface JScrollPaneSettings {
* Whether keyboard navigation should be enabled (e.g. whether the user can focus the scrollpane and then use
* the arrow (and other) keys to navigate around.
*/
enableKeyboardNavigation?: bool;
enableKeyboardNavigation?: boolean;
/**
* Whether the focus outline should be hidden in all browsers. For best accessibility you should not change
* this option. You can style the outline with the CSS property outline and outline-offset.
*/
hideFocus?: bool;
hideFocus?: boolean;
/**
* Whether clicking on the track (e.g. the area behind the drag) should scroll towards the point clicked on.
* Defaults to true as this is the native behaviour in these situations.
*/
clickOnTrack?: bool;
clickOnTrack?: boolean;
/**
* A multiplier which is used to control the amount that the scrollpane scrolls each trackClickRepeatFreq
* while the mouse button is held down over the track.
@@ -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?: bool): void;
scrollToElement(ele: JQuery, stickToTop?: bool, 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?: bool): void;
scrollToElement(ele: string, stickToTop?: bool, 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?: bool): void;
scrollToElement(ele: HTMLElement, stickToTop?: bool, 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
@@ -182,35 +182,35 @@ 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.
*/
scrollTo(destX: number, destY: number, animate?: bool): void;
scrollTo(destX: number, destY: number, animate?: boolean): void;
/**
* Scrolls the pane so that the specified co-ordinate within the content is at the left of the viewport.
* @param destX Left position of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToX(destX: number, animate?: bool): void;
scrollToX(destX: number, animate?: boolean): void;
/**
* Scrolls the pane so that the specified co-ordinate within the content is at the top of the viewport.
* @param destY Top position of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToY(destY: number, animate?: bool): void;
scrollToY(destY: number, animate?: boolean): void;
/**
* Scrolls the pane to the specified percentage of its maximum horizontal scroll position.
* @param destPercentX Percentage from left of the full width of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToPercentX(destPercentX: number, animate?: bool): void;
scrollToPercentX(destPercentX: number, animate?: boolean): void;
/**
* Scrolls the pane to the specified percentage of its maximum vertical scroll position.
* @param destPercentY Percentage from top of the full width of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToPercentY(destPercentY: number, animate?: bool): void;
scrollToPercentY(destPercentY: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels.
* @param deltaX Number of pixels to scroll horizontally
@@ -218,35 +218,35 @@ 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.
*/
scrollBy(deltaX: number, deltaY: number, animate?: bool): void;
scrollBy(deltaX: number, deltaY: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels.
* @param deltaX Number of pixels to scroll horizontally
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollByX(deltaX: number, animate?: bool): void;
scrollByX(deltaX: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels
* @param deltaY Number of pixels to scroll vertically
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollByY(deltaY: number, animate?: bool): void;
scrollByY(deltaY: number, animate?: boolean): void;
/**
* Positions the horizontal drag at the specified x position (and updates the viewport to reflect this)
* @param x New position of the horizontal drag
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
positionDragX(x: number, animate?: bool): void;
positionDragX(x: number, animate?: boolean): void;
/**
* Positions the vertical drag at the specified y position (and updates the viewport to reflect this)
* @param x New position of the vertical drag
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
positionDragY(y: number, animate?: bool): void;
positionDragY(y: number, animate?: boolean): void;
/**
* This method is called when jScrollPane is trying to animate to a new position. You can override it if you want
* to provide advanced animation functionality.
@@ -271,7 +271,7 @@ interface JScrollPaneApi {
/**
* Returns whether or not this scrollpane has a horizontal scrollbar.
*/
getIsScrollableH(): bool;
getIsScrollableH(): boolean;
/**
* Returns the horizontal position of the viewport within the pane content.
*/
@@ -283,7 +283,7 @@ interface JScrollPaneApi {
/**
* Returns whether or not this scrollpane has a vertical scrollbar.
*/
getIsScrollableV(): bool;
getIsScrollableV(): boolean;
/**
* Gets a reference to the content pane. It is important that you use this method if you want to edit the content
* of your jScrollPane as if you access the element directly then you may have some problems (as your original
@@ -295,7 +295,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.
*/
scrollToBottom(animate?: bool);
scrollToBottom(animate?: boolean);
/**
* Hijacks the links on the page which link to content inside the scrollpane. If you have changed the content of
* your page (e.g. via AJAX) and want to make sure any new anchor links to the contents of your scroll pane will

View File

@@ -28,7 +28,7 @@ interface ErrorCallback { (d: Deferred, ...args: any[]); }
declare class Deferred {
static methods: string[];
static isDeferred(obj: any): bool;
static isDeferred(obj: any): boolean;
static next(fun: Function): Deferred;
static chain(...args: any[]): Deferred;
static wait(n: number): Deferred;

View File

@@ -6,10 +6,10 @@
interface JSONEditorOptions {
change?: () => void;
history?: bool;
history?: boolean;
mode?: string;
name?: string;
search?: bool;
search?: boolean;
}
declare class JSONEditorHistory {
@@ -17,15 +17,15 @@ declare class JSONEditorHistory {
onChange(): void;
add(action: string, params: Object);
clear(): void;
canUndo(): bool;
canRedo(): bool;
canUndo(): boolean;
canRedo(): boolean;
undo(): void;
redo(): void;
}
interface JSONEditorNodeUpdateDomOptions {
recurse?: bool;
updateIndexes?: bool;
recurse?: boolean;
updateIndexes?: boolean;
}
interface JSONEditorNodeType {
@@ -36,7 +36,7 @@ interface JSONEditorNodeType {
interface JSONEditorConstructorParams {
field?: string;
fieldEditable?: bool;
fieldEditable?: boolean;
value?: any;
}
@@ -44,14 +44,14 @@ declare class JSONEditorNode {
constructor(editor: JSONEditor, params: JSONEditorConstructorParams);
setParent(parent: JSONEditorNode): void;
getParent(): JSONEditorNode;
setField(field: string, fieldEditable: bool): void;
setField(field: string, fieldEditable: boolean): void;
getField(): string;
setValue(value: any): void;
getValue(): any;
getLevel(): number;
clone(): JSONEditorNode;
expand(recurse: bool): void;
collapse(recurse: bool): void;
expand(recurse: boolean): void;
collapse(recurse: boolean): void;
showChilds(): void;
hide(): void;
hideChilds(): void;
@@ -63,12 +63,12 @@ declare class JSONEditorNode {
scrollTo(): void;
focus(): void;
blur(): void;
containsNode(node: JSONEditorNode): bool;
containsNode(node: JSONEditorNode): boolean;
removeChild(node: JSONEditorNode): JSONEditorNode;
changeType(newType: string): void;
clearDom(): void;
getDom(): HTMLElement;
setHighlight(highlight: bool): void;
setHighlight(highlight: boolean): void;
updateValue(value: any): void;
updateField(field: string): void;
updateDom(options): void;
@@ -100,7 +100,7 @@ declare class JSONEditorSearchBox {
focusActiveResult(): void;
clearDelay(): void;
onDelayedSearch(event: Event): void;
onSearch(event: Event, forcedSearch: bool): void;
onSearch(event: Event, forcedSearch: boolean): void;
onKeyDown(event: Event): void;
onKeyUp(event: Event): void;
}
@@ -143,7 +143,7 @@ declare class JSONEditor {
Node: JSONEditorNode;
SearchBox: JSONEditorSearchBox;
static focusNode: JSONEditorNode;
static freezeHighlight: bool;
static freezeHighlight: boolean;
static showDropDownList(params): void;
static getNodeFromTarget(target: HTMLElement): JSONEditorNode;
static getAbsoluteLeft(elem: HTMLElement): number;
@@ -155,8 +155,8 @@ declare class JSONEditor {
static getInnerText(element: HTMLElement, buffer: JSONEditorBuffer): string;
static getInternetExplorerVersion(): number;
Events: {
addEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:bool): (event?: Event) => void;
removeEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:bool): void;
addEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:boolean): (event?: Event) => void;
removeEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:boolean): void;
stopPropagation(event: Event): void;
preventDefault(event:Event): void;

View File

@@ -35,8 +35,8 @@ interface Defaults {
Endpoint?: any[];
PaintStyle?: PaintStyle;
HoverPaintStyle?: PaintStyle;
ConnectionsDetachable?: bool;
ReattachConnections?: bool;
ConnectionsDetachable?: boolean;
ReattachConnections?: boolean;
ConnectionOverlays?: any[][];
}
@@ -66,8 +66,8 @@ interface Connections {
interface ConnectParams {
source: string;
target: string;
detachable?: bool;
deleteEndpointsOnDetach?: bool;
detachable?: boolean;
deleteEndpointsOnDetach?: boolean;
endPoint?: string;
anchor?: string;
anchors?: any[];
@@ -87,10 +87,10 @@ interface SourceOptions {
}
interface TargetOptions {
isTarget?: bool;
isTarget?: boolean;
maxConnections?: number;
uniqueEndpoint?: bool;
deleteEndpointsOnDetach?: bool;
uniqueEndpoint?: boolean;
deleteEndpointsOnDetach?: boolean;
endpoint?: string;
dropOptions?: DropOptions;
anchor?: any;

20
jszip/jszip.d.ts vendored
View File

@@ -87,7 +87,7 @@ declare module jszip {
*
* @return {JSZipFile[]} array of matched elements
*/
filter(predicate: (relativePath: string, file: JSZipFile) => bool): JSZipFile[];
filter(predicate: (relativePath: string, file: JSZipFile) => boolean): JSZipFile[];
/**
* Calculate crc32 of given string
@@ -123,20 +123,20 @@ declare module jszip {
}
export interface JSZipSupport {
arraybuffer: bool;
uint8array: bool;
blob: bool;
arraybuffer: boolean;
uint8array: boolean;
blob: boolean;
}
export interface JSZipGeneratorOptions {
base64?: bool; //deprecated
base64?: boolean; //deprecated
compression: string; //DEFLATE or STORE
type: string; //base64 (default), string, uint8array, blob
}
export interface JSZipOptions {
base64: bool;
checkCRC32: bool;
base64: boolean;
checkCRC32: boolean;
}
export interface JSZipFile {
@@ -151,9 +151,9 @@ declare module jszip {
}
export interface JSZipFileOptions {
base64: bool;
binary: bool;
dir: bool;
base64: boolean;
binary: boolean;
dir: boolean;
date: Date;
}

View File

@@ -8,13 +8,13 @@ interface JWPlayer {
addButton(icon: string, label: string, handler: () => void, id: string): void;
getBuffer(): number;
getCaptionsList(): any[];
getControls(): bool;
getControls(): boolean;
getCurrentCaptions(): number;
getCurrentQuality(): number;
getDuration(): number;
getHeight(): number;
getFullscreen(): bool;
getMute(): bool;
getFullscreen(): boolean;
getMute(): boolean;
getPlaylist(): any[];
getPlaylistItem(index: number): any;
getPosition(): number;
@@ -57,10 +57,10 @@ interface JWPlayer {
removeButton(id: string): void;
resize(width: number, height: number): void;
seek(position: number): void;
setControls(controls: bool): void;
setControls(controls: boolean): void;
setCurrentCaptions(index: number): void;
setCurrentQuality(index: number): void;
setMute(state: bool): void;
setMute(state: boolean): void;
setup(options: any): JWPlayer;
setVolume(volume: number): void;
stop(): void;

View File

@@ -40,7 +40,7 @@ interface KeyboardJSStatic {
code(keyName: string): any;
};
combo: {
active(keyCombo: string): bool;
active(keyCombo: string): boolean;
parse(keyCombo: any): any[];
stringify(keyComboArray: any): string;
};

View File

@@ -44,10 +44,10 @@ declare module Knockback {
static useOptionsOrCreate(options: FactoryOptions, obj: any, owner_path: string);
constructor (parent_factory: any);
hasPath(path: string): bool;
hasPath(path: string): boolean;
addPathMapping(path: string, create_info);
addPathMappings(factories: any, owner_path: string);
hasPathMappings(factories: any, owner_path: string): bool;
hasPathMappings(factories: any, owner_path: string): boolean;
creatorForPath(obj: any, path: string);
}
@@ -111,7 +111,7 @@ declare module Knockback {
}
interface CollectionOptions extends OptionsBase {
models_only?: bool; // flag for skipping the creation of view models. The collection observable will be populated with (possibly sorted) models.
models_only?: boolean; // flag for skipping the creation of view models. The collection observable will be populated with (possibly sorted) models.
view_model?: any; // (Constructor) — the view model constructor used for models in the collection. Signature: constructor(model, options)
create?: any; // a function used to create a view model for models in the collection. Signature: create(model, options)
factories?: any; // a map of dot-deliminated paths; for example 'models.owner': kb.ViewModel to either constructors or create functions. Signature: 'some.path': function(object, options)
@@ -127,11 +127,11 @@ declare module Knockback {
shareOptions(): CollectionOptions;
filters(id: any) : Backbone.Model;
filters(ids: any[]): CollectionObservable;
filters(iterator: (element: Backbone.Model) => bool): CollectionObservable;
filters(iterator: (element: Backbone.Model) => boolean): CollectionObservable;
comparator(comparatorFunction: any);
sortAttribute(attr: string);
viewModelByModel(model: Backbone.Model): ViewModel;
hasViewModels(): bool;
hasViewModels(): boolean;
}
interface Utils {
@@ -153,8 +153,8 @@ declare module Knockback {
optionsPathJoin(options: any, path: string): any;
inferCreator(value: any, factory: Factory, path: string, owner: any, key: string);
createFromDefaultCreator(obj: any, options?: any);
hasModelSignature(obj: any): bool;
hasCollectionSignature(obj: any): bool;
hasModelSignature(obj: any): boolean;
hasCollectionSignature(obj: any): boolean;
}
interface Static extends Utils {

View File

@@ -9,15 +9,15 @@ interface KnockoutEditable {
beginEdit(): void;
commit(): void;
rollback(): void;
hasChanges(): bool;
hasChanges(): boolean;
}
interface KnockoutEditableStatic {
(viewModel: any, autoInit?: bool): void;
(viewModel: any, autoInit?: boolean): void;
beginEdit(scope: string): void;
commit(scope: string): void;
rollback(scope: string): void;
hasChanges(scope: string): bool;
hasChanges(scope: string): boolean;
// INTERNAL
//getHasChangesFlag(scope: string): any;

View File

@@ -12,7 +12,7 @@ interface KnockoutViewModelStatic {
// INTERNAL flag: enable logging of conversions
// logs will be written to console
logging: bool;
logging: boolean;
}
// Extend ko global

View File

@@ -18,11 +18,11 @@ declare module 'knockout' {
export var computed: KnockoutComputedStatic;
export var observableArray: KnockoutObservableArrayStatic;
export function contextFor(node: any): any;
export function isSubscribable(instance: any): bool;
export function isSubscribable(instance: any): boolean;
export function toJSON(viewModel: any, replacer?: Function, space?: any): string;
export function toJS(viewModel: any): any;
export function isObservable(instance: any): bool;
export function isComputed(instance: any): bool;
export function isObservable(instance: any): boolean;
export function isComputed(instance: any): boolean;
export function dataFor(node: any): any;
export function removeNode(node: Element);
export function cleanNode(node: Element);

4
kolite/kolite.d.ts vendored
View File

@@ -34,7 +34,7 @@ interface KnockoutBindingHandlers {
interface JQuery {
activity: KoLiteActivity;
activityEx(isLoading: bool): JQuery;
activityEx(isLoading: boolean): JQuery;
}
@@ -60,7 +60,7 @@ interface KoliteCommand {
interface KoLiteCommandOptions {
execute?: any;
canExecute?: (isExecuting: bool) => any;
canExecute?: (isExecuting: boolean) => any;
}
interface KnockoutStatic {

36
less/less.d.ts vendored
View File

@@ -27,13 +27,13 @@ declare module "less" {
mime?: string;
filename?: string;
optimization?: number;
dumpLineNumbers?: bool;
dumpLineNumbers?: boolean;
strictImports?;
entryPath?: string;
relativeUrls?;
errback? (path: string, paths: string[], callback: Function, env: Options);
frames?;
compress?: bool;
compress?: boolean;
}
export module tree {
@@ -251,7 +251,7 @@ declare module "less" {
eval(env: Options): Ruleset;
evalImports(env: Options): void;
makeImportant(): Ruleset;
matchArgs(args: any): bool;
matchArgs(args: any): boolean;
resetCache(): void;
variables(): RuleContainer;
variable(): Rule;
@@ -290,7 +290,7 @@ declare module "less" {
export class Selector implements IInjectable {
constructor(elements: Element[]);
match(other: Selector): bool;
match(other: Selector): boolean;
eval(env: Options): Selector;
toCSS(env?: Options): string;
}
@@ -298,7 +298,7 @@ declare module "less" {
export class Quoted implements IInjectable, IComparable {
constructor(str: string, content: string, escaped: bool, i);
escaped: bool;
escaped: boolean;
value: string;
quote: string;
index;
@@ -318,13 +318,13 @@ declare module "less" {
}
export class Rule implements IInjectable {
constructor(name: string, value?: Value, important?: string, index?, inline?: bool);
constructor(name: string, value?: Value, important?: string, index?, inline?: boolean);
name: string;
value: Value;
important: string;
index;
inline: bool;
inline: boolean;
toCSS(env?: Options): string;
eval(context): Rule;
@@ -376,12 +376,12 @@ declare module "less" {
export class Import implements IInjectable {
constructor(path, imports, features: ICSSable, once: bool, index, rootpath);
once: bool;
once: boolean;
index;
features: ICSSable;
rootpath;
path: string;
css: bool;
css: boolean;
toCSS(env?: Options): string;
eval(env: Options): IEvalable;
@@ -391,7 +391,7 @@ declare module "less" {
constructor(value: string, silent);
value: string;
silent: bool;
silent: boolean;
toCSS(env?: Options): string;
eval(): Comment;
@@ -418,9 +418,9 @@ declare module "less" {
}
export class JavaScript implements IEvalable {
constructor(expression: string, index, escaped: bool);
constructor(expression: string, index, escaped: boolean);
escaped: bool;
escaped: boolean;
expression: string;
index;
@@ -440,15 +440,15 @@ declare module "less" {
}
export class Condition {
constructor(op: string, l, r, i, negate: bool);
constructor(op: string, l, r, i, negate: boolean);
op: string;
lvalue;
rvalue;
index;
negate: bool;
negate: boolean;
eval(env: Options): bool;
eval(env: Options): boolean;
}
export class Paren implements IInjectable {
@@ -509,7 +509,7 @@ declare module "less" {
class ParserNode extends tree.AbstractRuleset {
toCSS(): string;
toCSS(options: { compress: bool; }, variables?): string;
toCSS(options: { compress: boolean; }, variables?): string;
}
export class Parser {
@@ -535,8 +535,8 @@ declare module "less" {
export function render(input: string, options: Options,
callback: (e, css: string) => void): void;
export function formatError(ctx, options: { color: bool; }): string;
export function writeError(ctx, options: { color: bool; }): void;
export function formatError(ctx, options: { color: boolean; }): string;
export function writeError(ctx, options: { color: boolean; }): void;
export var version: number[];
}

View File

@@ -85,7 +85,7 @@ declare module "libxmljs" {
}
export class SaxParser {
parseString(source:string):bool;
parseString(source:string):boolean;
addListener(event: string, listener: Function);
on(event: string, listener: Function): any;
once(event: string, listener: Function): void;
@@ -98,7 +98,7 @@ declare module "libxmljs" {
export class SaxPushParser {
push(source:string):bool;
push(source:string):boolean;
addListener(event: string, listener: Function);
on(event: string, listener: Function): any;
once(event: string, listener: Function): void;

2
logg/logg.d.ts vendored
View File

@@ -10,7 +10,7 @@ interface Logger {
info: (...var_args: any[])=> void;
warn: (...var_args: any[])=> void;
error: (...var_args: any[])=> void;
isLoggable: (level: number)=> bool;
isLoggable: (level: number)=> boolean;
}
interface loggingLevels {

View File

@@ -26,21 +26,21 @@ declare module Backbone {
//mixins from Collection (copied from Backbone's Collection declaration)
all(iterator: (element: View, index: number) => bool, context?: any): bool;
any(iterator: (element: View, index: number) => bool, context?: any): bool;
contains(value: any): bool;
all(iterator: (element: View, index: number) => bool, context?: any): boolean;
any(iterator: (element: View, index: number) => bool, context?: any): boolean;
contains(value: any): boolean;
detect(iterator: (item: any) => bool, context?: any): any;
each(iterator: (element: View, index: number, list?: any) => void , context?: any);
every(iterator: (element: View, index: number) => bool, context?: any): bool;
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;
first(): View;
forEach(iterator: (element: View, index: number, list?: any) => void , context?: any);
include(value: any): bool;
include(value: any): boolean;
initial(): View;
initial(n: number): View[];
invoke(methodName: string, arguments?: any[]);
isEmpty(object: any): bool;
isEmpty(object: any): boolean;
last(): View;
last(n: number): View[];
lastIndexOf(element: View, fromIndex?: number): number;
@@ -50,7 +50,7 @@ declare module Backbone {
rest(): View;
rest(n: number): View[];
select(iterator: any, context?: any): any[];
some(iterator: (element: View, index: number) => bool, context?: any): bool;
some(iterator: (element: View, index: number) => bool, context?: any): boolean;
toArray(): any[];
without(...values: any[]): View[];
}
@@ -65,7 +65,7 @@ declare module Backbone {
options: any;
setHandler(name: string, handler: any, context: any): void;
hasHandler(name: string): bool;
hasHandler(name: string): boolean;
getHandler(name: string): Function;
removeHandler(name: string);
removeAllHandlers(): void;
@@ -145,21 +145,21 @@ declare module Marionette {
//mixins from Collection (copied from Backbone's Collection declaration)
all(iterator: (element: Region, index: number) => bool, context?: any): bool;
any(iterator: (element: Region, index: number) => bool, context?: any): bool;
contains(value: any): bool;
all(iterator: (element: Region, index: number) => bool, context?: any): boolean;
any(iterator: (element: Region, index: number) => bool, context?: any): boolean;
contains(value: any): boolean;
detect(iterator: (item: any) => bool, context?: any): any;
each(iterator: (element: Region, index: number, list?: any) => void , context?: any);
every(iterator: (element: Region, index: number) => bool, context?: any): bool;
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;
first(): Region;
forEach(iterator: (element: Region, index: number, list?: any) => void , context?: any);
include(value: any): bool;
include(value: any): boolean;
initial(): Region;
initial(n: number): Region[];
invoke(methodName: string, arguments?: any[]);
isEmpty(object: any): bool;
isEmpty(object: any): boolean;
last(): Region;
last(n: number): Region[];
lastIndexOf(element: Region, fromIndex?: number): number;
@@ -169,7 +169,7 @@ declare module Marionette {
rest(): Region;
rest(n: number): Region[];
select(iterator: any, context?: any): any[];
some(iterator: (element: Region, index: number) => bool, context?: any): bool;
some(iterator: (element: Region, index: number) => bool, context?: any): boolean;
toArray(): any[];
without(...values: any[]): Region[];
}

10
marked/marked.d.ts vendored
View File

@@ -17,10 +17,10 @@ declare module "marked" {
}
interface Options {
gfm?: bool;
tables?: bool;
breaks?: bool;
pedantic?: bool;
sanitize?: bool;
gfm?: boolean;
tables?: boolean;
breaks?: boolean;
pedantic?: boolean;
sanitize?: boolean;
highlight?: any;
}

View File

@@ -20,11 +20,11 @@ declare module "msnodesql" {
}
interface QueryCallback {
(err?: Error, results?: any[], more?: bool): void;
(err?: Error, results?: any[], more?: boolean): void;
}
interface QueryRawCallback {
(err?: Error, results?: QueryRawResult, more?: bool): void;
(err?: Error, results?: QueryRawResult, more?: boolean): void;
}
interface QueryRawResult {

View File

@@ -9,7 +9,7 @@ interface MustacheScanner {
tail: string;
pos: number;
eos(): bool;
eos(): boolean;
scan(re: RegExp): string;
scanUntil(re: RegExp): string;
}

34
noVNC/noVNC.d.ts vendored
View File

@@ -1,6 +1,6 @@
// Type definitions for noVNC
// Project: https://github.com/kanaka/noVNC
// Definitions by: Ken Smith <https://github.com/smithkl42/>
// Type definitions for noVNC
// Project: https://github.com/kanaka/noVNC
// Definitions by: Ken Smith <https://github.com/smithkl42/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface NvPoint {
@@ -9,16 +9,16 @@ interface NvPoint {
}
interface NvFeatures {
xpath: bool;
air: bool;
query: bool;
xpath: boolean;
air: boolean;
query: boolean;
}
interface NvEngine {
presto: bool;
trident: bool;
webkit: bool;
gecko: bool;
presto: boolean;
trident: boolean;
webkit: boolean;
gecko: boolean;
}
interface NvFlash {
@@ -67,14 +67,14 @@ interface NvRenderAction {
interface NvRFBDefaults {
target?: HTMLCanvasElement;
focusContainer?: HTMLElement;
encrypt?: bool;
true_color?: bool;
local_cursor?: bool;
shared?: bool;
view_only?: bool;
encrypt?: boolean;
true_color?: boolean;
local_cursor?: boolean;
shared?: boolean;
view_only?: boolean;
connectTimeout?: number;
disconnectTimeout?: number;
viewportDrag?: bool;
viewportDrag?: boolean;
check_rate?: number;
fbu_req_rate?: number;
repeaterID?: string;
@@ -97,7 +97,7 @@ declare class RFB {
disconnect(): void;
sendPassword(passwd: string): void;
sendCtrlAltDel(): void;
sendKey(code: number, down: bool): void;
sendKey(code: number, down: boolean): void;
clipboardPasteFrom(text: string): void;
testMode(override_send: (arr: Array) => bool, data_mode: string): void;
}

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

@@ -175,7 +175,7 @@ declare module "azure" {
performRequestInputStream(webResource: WebResource, outputData: string, inputStream, options, callback: Function): void;
withFilter(newFilter: { handle: (requestOptions, next: Function) => void; }): ServiceClient;
parseMetadataHeaders(headers): any;
isEmulated(): bool;
isEmulated(): boolean;
setProxy(proxyUrl: string, proxyPort: number): void;
}
@@ -192,9 +192,9 @@ declare module "azure" {
constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: bool, authenticationProvider);
beginBatch(): void;
isInBatch(): bool;
isInBatch(): boolean;
rollback(): void;
hasOperations(): bool;
hasOperations(): boolean;
addOperation(webResource: WebResource, outputData): void;
commitBatch(callback: (error, operationResponses: any[], response) => void ): void;
commitBatch(options, callback: (error, operationResponses: any[], response) => void ): void;
@@ -273,7 +273,7 @@ declare module "azure" {
//#region Non-explicit, undeclared interfaces
export interface WebResponse {
isSuccessful: bool;
isSuccessful: boolean;
statusCode: number;
body: { entry: { id: string; title; updated: string; author: { name; }; link; category; content; }; };
headers;
@@ -334,7 +334,7 @@ declare module "azure" {
}
export interface UpdateEntityOptions extends TimeoutIntervalOptions {
checkEtag?: bool;
checkEtag?: boolean;
}
export interface Entity {
@@ -360,5 +360,5 @@ declare module "azure" {
}
//#endregion
export function isEmulated(): bool;
export function isEmulated(): boolean;
}

View File

@@ -5,18 +5,18 @@
declare module 'redis' {
export var debug_mode: bool;
export var debug_mode: boolean;
export function createClient(): RedisClient;
export function createClient(port: number, host: string, options?: RedisOptions): RedisClient;
export function print(err: string, reply?: string);
interface RedisOptions {
parser?: string;
return_buffers?: bool;
detect_buffers?: bool;
socket_nodelay?: bool;
no_ready_check?: bool;
enable_offline_queue?: bool;
return_buffers?: boolean;
detect_buffers?: boolean;
socket_nodelay?: boolean;
no_ready_check?: boolean;
enable_offline_queue?: boolean;
}
interface Command {
@@ -327,7 +327,7 @@ declare module 'redis' {
stream;
server_info;
connected: bool;
connected: boolean;
command_queue: any[];
offline_queue: any[];
retry_delay : number;

View File

@@ -38,7 +38,7 @@ interface MailComposer {
text?: string; // plaintext body
html?: string; // HTML body
attachments?: NodeMailerAttachment[]; // An array of attachments
forceEmbeddedImages?: bool;
forceEmbeddedImages?: boolean;
}
interface DKIMOptions{
@@ -70,7 +70,7 @@ interface XOAuth2Options {
interface NodemailerTransportOptions {
service?: string;
auth?: NodemailerAuthInterface;
debug?: bool;
debug?: boolean;
AWSAccessKeyID?: string;
AWSSecretKey: string;
ServiceUrl: string;
@@ -87,11 +87,11 @@ interface NodemailerSMTPTransportOptions {
service?: string;
host?: string;
port?: number;
secureConnection?: bool;
secureConnection?: boolean;
name?: string;
auth: NodemailerAuthInterface;
ignoreTLS?: bool;
debug?: bool;
ignoreTLS?: boolean;
debug?: boolean;
maxConnections?: number;
}

View File

@@ -8,17 +8,17 @@ interface Phantom {
// Properties
args: string[]; // DEPRECATED
cookies: Cookie[];
cookiesEnabled: bool;
cookiesEnabled: boolean;
libraryPath: string;
scriptName: string; // DEPRECATED
version: any;
// Functions
addCookie(cookie: Cookie): bool;
addCookie(cookie: Cookie): boolean;
clearCookies();
deleteCookie(cookieName: string): bool;
exit(returnValue: any): bool;
injectJs(filename: string): bool;
deleteCookie(cookieName: string): boolean;
exit(returnValue: any): boolean;
injectJs(filename: string): boolean;
// Callbacks
onError: Function;
@@ -41,8 +41,8 @@ interface OS {
interface WebPage {
// Properties
canGoBack: bool;
canGoForward: bool;
canGoBack: boolean;
canGoForward: boolean;
clipRect: ClipRect;
content: string;
cookies: Cookie[];
@@ -57,10 +57,10 @@ interface WebPage {
framesCount: number;
framesName;
libraryPath: string;
navigationLocked: bool;
navigationLocked: boolean;
offlineStoragePath: string;
offlineStorageQuota: number;
ownsPages: bool;
ownsPages: boolean;
pages;
pagesWindowName: string;
paperSize: PaperSize;
@@ -74,13 +74,13 @@ interface WebPage {
zoomFactor: number;
// Functions
addCookie(cookie: Cookie): bool;
addCookie(cookie: Cookie): boolean;
childFramesCount(): number; // DEPRECATED
childFramesName(): string; // DEPRECATED
clearCookies();
close();
currentFrameName(): string; // DEPRECATED
deleteCookie(cookieName: string): bool;
deleteCookie(cookieName: string): boolean;
evaluate(fn: Function, ...args: any[]): any;
evaluateAsync(fn: Function);
evaluateJavascript(str: string);
@@ -89,7 +89,7 @@ interface WebPage {
goBack();
goForward();
includeJs(url: string, callback: Function);
injectJs(filename: string): bool;
injectJs(filename: string): boolean;
open(url: string, callback: (status: string) => void);
openUrl(url: string, httpConf: any, settings: any);
release(); // DEPRECATED
@@ -134,7 +134,7 @@ interface WebPage {
javaScriptConsoleMessageSent(message: string);
loadFinished(status);
loadStarted();
navigationRequested(url: string, navigationType, navigationLocked, isMainFrame: bool);
navigationRequested(url: string, navigationType, navigationLocked, isMainFrame: boolean);
rawPageCreated(page);
resourceReceived(request);
resourceRequested(resource);
@@ -150,13 +150,13 @@ interface PaperSize {
}
interface WebPageSettings {
javascriptEnabled: bool;
loadImages: bool;
localToRemoteUrlAccessEnabled: bool;
javascriptEnabled: boolean;
loadImages: boolean;
localToRemoteUrlAccessEnabled: boolean;
userAgent: string;
password: string;
XSSAuditingEnabled: bool;
webSecurityEnabled: bool;
XSSAuditingEnabled: boolean;
webSecurityEnabled: boolean;
}
interface FileSystem {
@@ -170,14 +170,14 @@ interface FileSystem {
// Query Functions
list(path: string): string[];
absolute(path: string): string;
exists(path: string): bool;
isDirectory(path: string): bool;
isFile(path: string): bool;
isAbsolute(path: string): bool;
isExecutable(path: string): bool;
isReadable(path: string): bool;
isWritable(path: string): bool;
isLink(path: string): bool;
exists(path: string): boolean;
isDirectory(path: string): boolean;
isFile(path: string): boolean;
isAbsolute(path: string): boolean;
isExecutable(path: string): boolean;
isReadable(path: string): boolean;
isWritable(path: string): boolean;
isLink(path: string): boolean;
readLink(path: string): string;
// Directory Functions
@@ -210,8 +210,8 @@ interface Stream {
interface WebServer {
port: number;
listen(port: number, cb?:(request, response) => void): bool;
listen(ipAddressPort: string, cb?:(request, response) => void): bool;
listen(port: number, cb?:(request, response) => void): boolean;
listen(ipAddressPort: string, cb?:(request, response) => void): boolean;
close();
}

View File

@@ -47,13 +47,13 @@ interface CameraOptions {
quality?: number;
destinationType?: number;
sourceType?: number;
allowEdit?: bool;
allowEdit?: boolean;
encodingType?: number;
targetWidth?: number;
targetHeight?: number;
mediaType?: number;
correctOrientation?: bool;
saveToPhotoAlbum?: bool;
correctOrientation?: boolean;
saveToPhotoAlbum?: boolean;
popoverOptions?: number;
}
@@ -168,7 +168,7 @@ interface Connection {
}
interface ContactAddress {
pref: bool;
pref: boolean;
type: string;
formatted: string;
streetAddress: string;
@@ -181,10 +181,10 @@ interface ContactAddress {
interface ContactField {
type: string;
value: string;
pref: bool;
pref: boolean;
}
declare var ContactField: {
new(type: string, calue: string, perf: bool): ContactField;
new(type: string, calue: string, perf: boolean): ContactField;
}
interface Contact {
@@ -210,7 +210,7 @@ interface Contact {
interface ContactFindOptions {
filter?: string;
multiple?: bool;
multiple?: boolean;
}
declare var ContactFindOptions : {
new(): ContactFindOptions;
@@ -229,7 +229,7 @@ declare var ContactName: {
}
interface ContactOrganization {
pref: bool;
pref: boolean;
type: string;
name: string;
department: string;
@@ -292,8 +292,8 @@ declare var DirectoryEntry: {
}
interface FileSystemEntry {
isFile: bool;
isDirectory: bool;
isFile: boolean;
isDirectory: boolean;
name: string;
fullPath: string;
filesystem: FileSystem;
@@ -340,7 +340,7 @@ interface FileUploadOptions {
fileName?: string;
mimeType?: string;
params?: any;
chunkedMode?: bool;
chunkedMode?: boolean;
headers?: any;
}
declare var FileUploadOptions: {
@@ -382,7 +382,7 @@ interface FileTransferError {
}
interface GeolocationOptions {
enableHighAccuracy?: bool;
enableHighAccuracy?: boolean;
timeout?: number;
maximumAge?: number;
}
@@ -411,7 +411,7 @@ interface Globalization {
interface InAppBrowser {
addEventListener(eventname: string, callback): void;
removeEventListener(eventname: string, callback): void;
open(url?: string, target?: string, features?: string, replace?: bool): Window;
open(url?: string, target?: string, features?: string, replace?: boolean): Window;
close(): void;
}
*/

View File

@@ -44,7 +44,7 @@ function runTests() {
var p: PlatformStatic;
var x: string;
var px: any;
var res: bool;
var res: boolean;
var onFalse: (name: string) => () => any;
for (var n in tests) {

38
pouchDB/pouch.d.ts vendored
View File

@@ -27,10 +27,10 @@ interface PouchApi {
interface PouchGetOptions {
rev?: string;
revs?: bool;
revs_info?: bool;
conflicts?: bool;
attachments?: bool;
revs?: boolean;
revs_info?: boolean;
conflicts?: boolean;
attachments?: boolean;
}
interface PouchGetResponse {
@@ -42,9 +42,9 @@ interface PouchGetResponse {
interface PouchAllDocsOptions {
startkey?: string;
endKey?: string;
descending?: bool;
include_docs?: bool;
conflicts?: bool;
descending?: boolean;
include_docs?: boolean;
conflicts?: boolean;
}
interface PouchAllDocsItem {
@@ -74,11 +74,11 @@ interface PouchBulkDocsRequest {
}
interface PouchUpdateOptions {
new_edits?: bool;
new_edits?: boolean;
}
interface PouchUpdateResponse {
ok: bool;
ok: boolean;
id: string;
rev: string;
}
@@ -110,10 +110,10 @@ interface PouchFilter {
interface PouchQueryOptions {
complete?: any;
include_docs?: bool;
include_docs?: boolean;
error?: (err: PouchError) => void;
descending?: bool;
reduce?: bool;
descending?: boolean;
reduce?: boolean;
}
interface PouchQueryResponse {
@@ -131,7 +131,7 @@ interface PouchApi {
}
interface PouchAttachmentOptions {
decode?: bool;
decode?: boolean;
}
interface PouchApi {
@@ -150,11 +150,11 @@ interface PouchChangesOptions {
complete?: (err: PouchError, res: PouchChanges) => void;
seq?: number;
since?: number;
descending?: bool;
descending?: boolean;
filter?: PouchFilter;
continuous?: bool;
include_docs?: bool;
conflicts?: bool;
continuous?: boolean;
include_docs?: boolean;
conflicts?: boolean;
}
interface PouchChange {
@@ -177,14 +177,14 @@ interface PouchRevsDiffOptions {
}
interface PouchReplicateOptions {
continuous?: bool;
continuous?: boolean;
onChange?: (any) => void;
filter?: any; // Can be either string or PouchFilter
complete?: (err: PouchError, res: PouchChanges) => void;
}
interface PouchReplicateResponse {
ok: bool;
ok: boolean;
start_time: Date;
end_time: Date;
docs_read: number;

View File

@@ -13,8 +13,8 @@
declare module createjs {
export class AbstractLoader {
// properties
canceled: bool;
loaded: bool;
canceled: boolean;
loaded: boolean;
progress: number;
// methods
@@ -31,14 +31,14 @@ declare module createjs {
loadStart: (event: Object) => any;
// EventDispatcher mixins
addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
addEventListener(type: string, listener: (eventObj: Object) => bool): Object;
removeEventListener(type: string, listener: (eventObj: Function) => bool): void;
removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
addEventListener(type: string, listener: (eventObj: Object) => boolean): Function;
addEventListener(type: string, listener: (eventObj: Object) => boolean): Object;
removeEventListener(type: string, listener: (eventObj: Function) => boolean): void;
removeEventListener(type: string, listener: (eventObj: Object) => boolean): void;
removeAllEventListeners(type: string): void;
dispatchEvent(eventObj: string, target: Object): bool;
dispatchEvent(eventObj: Object, target: Object): bool;
hasEventListener(type: string): bool;
dispatchEvent(eventObj: string, target: Object): boolean;
dispatchEvent(eventObj: Object, target: Object): boolean;
hasEventListener(type: string): boolean;
}
export class PreloadJS {
@@ -47,7 +47,7 @@ declare module createjs {
}
export class LoadQueue extends AbstractLoader {
constructor (useXHR?: bool);
constructor (useXHR?: boolean);
// properties
static BINARY: string;
@@ -61,37 +61,37 @@ declare module createjs {
static LOAD_TIMEOUT: number;
static XML: string;
maintainScriptOrder: bool;
maintainScriptOrder: boolean;
next: LoadQueue;
stopOnError: bool;
useXHR: bool;
stopOnError: boolean;
useXHR: boolean;
// methods
BrowserDetect(): Object;
init(useXHR?: bool): void;
init(useXHR?: boolean): void;
close(): void;
initialize(useXHR: bool): void;
initialize(useXHR: boolean): void;
installPlugin(plugin: any): void;
load(): void;
loadFile(file: Object, loadNow?: bool): void;
loadFile(file: string, loadNow?: bool): void;
loadManifest(manifest: Object[], loadNow?: bool): void;
loadManifest(manifest: string[], loadNow?: bool): void;
loadFile(file: Object, loadNow?: boolean): void;
loadFile(file: string, loadNow?: boolean): void;
loadManifest(manifest: Object[], loadNow?: boolean): void;
loadManifest(manifest: string[], loadNow?: boolean): void;
getItem(value: string): Object;
getResult(value: string, rawResult?: bool): Object;
getResult(value: string, rawResult?: boolean): Object;
removeAll(): void;
remove(idsOrUrls: string): void;
remove(idsOrUrls: Array): void;
reset(): void;
setMaxConnections(value: number): void;
setUseXHR(value: bool): void;
setPaused(value: bool): void;
setUseXHR(value: boolean): void;
setPaused(value: boolean): void;
}
export class TagLoader extends AbstractLoader {
constructor (item: Object, srcAttr: string, useXHR: bool);
constructor (item: string, srcAttr: string, useXHR: bool);
constructor (item: Object, srcAttr: string, useXHR: boolean);
constructor (item: string, srcAttr: string, useXHR: boolean);
getResult(): HTMLImageElement;
getResult(): HTMLAudioElement;
}
@@ -99,6 +99,6 @@ declare module createjs {
export class XHRLoader extends AbstractLoader {
constructor (file: Object);
getResult(rawResult?: bool);
getResult(rawResult?: boolean);
}
}

View File

@@ -7,11 +7,11 @@ declare module PubSubJS {
}
interface Publish{
publish(message: any, data: any): bool;
publish(message: any, data: any): boolean;
publish(message:any, data:any, sync:bool, immediateExceptions:Function): bool;
publish(message:any, data:any, sync:bool, immediateExceptions:Function): boolean;
publishSync(message: any, data: any): bool;
publishSync(message: any, data: any): boolean;
}
interface Subscribe{

38
raphael/raphael.d.ts vendored
View File

@@ -37,15 +37,15 @@ interface RaphaelElement {
data(key: string, value: any): RaphaelElement;
dblclick(handler: Function): RaphaelElement;
drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement;
getBBox(isWithoutTransform?: bool): BoundingBox;
glow(glow?: { width?: number; fill?: bool; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;
getBBox(isWithoutTransform?: boolean): BoundingBox;
glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;
hide(): RaphaelElement;
hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement;
id: string;
insertAfter(): RaphaelElement;
insertBefore(): RaphaelElement;
isPointInside(x: number, y: number): bool;
isVisible(): bool;
isPointInside(x: number, y: number): boolean;
isVisible(): boolean;
matrix: RaphaelMatrix;
mousedown(handler: Function): RaphaelElement;
mousemove(handler: Function): RaphaelElement;
@@ -101,7 +101,7 @@ interface RaphaelPath extends RaphaelElement {
interface RaphaelSet {
clear();
exclude(element: RaphaelElement): bool;
exclude(element: RaphaelElement): boolean;
forEach(callback: Function, thisArg?: any): RaphaelSet;
pop(): RaphaelElement;
push(...RaphaelElement: any[]): RaphaelElement;
@@ -124,15 +124,15 @@ interface RaphaelSet {
data(key: string, value: any): RaphaelElement;
dblclick(handler: Function): RaphaelElement;
drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement;
getBBox(isWithoutTransform?: bool): BoundingBox;
glow(glow?: { width?: number; fill?: bool; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;
getBBox(isWithoutTransform?: boolean): BoundingBox;
glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;
hide(): RaphaelElement;
hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement;
id: string;
insertAfter(): RaphaelElement;
insertBefore(): RaphaelElement;
isPointInside(x: number, y: number): bool;
isVisible(): bool;
isPointInside(x: number, y: number): boolean;
isVisible(): boolean;
matrix: RaphaelMatrix;
mousedown(handler: Function): RaphaelElement;
mousemove(handler: Function): RaphaelElement;
@@ -185,7 +185,7 @@ interface RaphaelMatrix {
invert(): RaphaelMatrix;
rotate(a: number, x: number, y: number);
scale(x: number, y?: number, cx?: number, cy?: number);
split(): { dx: number; dy: number; scalex: number; scaley: number; shear: number; rotate: number; isSimple: bool; };
split(): { dx: number; dy: number; scalex: number; scaley: number; shear: number; rotate: number; isSimple: boolean; };
toTransformString(): string;
translate(x: number, y: number);
x(x: number, y: number);
@@ -218,7 +218,7 @@ interface RaphaelPaper {
setFinish();
setSize(width: number, height: number);
setStart();
setViewBox(x: number, y: number, w: number, h: number, fit: bool);
setViewBox(x: number, y: number, w: number, h: number, fit: boolean);
text(x: number, y: number, text: string): RaphaelElement;
top: RaphaelElement;
width: number;
@@ -235,7 +235,7 @@ interface RaphaelStatic {
animation(params: any, ms: number, easing?: string, callback?: Function): RaphaelAnimation;
bezierBBox(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): { min: { x: number; y: number; }; max: { x: number; y: number; }; };
bezierBBox(bez: Array): { min: { x: number; y: number; }; max: { x: number; y: number; }; };
color(clr: string): { r: number; g: number; b: number; hex: string; error: bool; h: number; s: number; v: number; l: number; };
color(clr: string): { r: number; g: number; b: number; hex: string; error: boolean; h: number; s: number; v: number; l: number; };
createUUID(): string;
deg(deg: number): number;
easing_formulas: any;
@@ -249,17 +249,17 @@ interface RaphaelStatic {
reset();
};
getPointAtLength(path: string, length: number): { x: number; y: number; alpha: number; };
getRGB(colour: string): { r: number; g: number; b: number; hex: string; error: bool; };
getRGB(colour: string): { r: number; g: number; b: number; hex: string; error: boolean; };
getSubpath(path: string, from: number, to: number): string;
getTotalLength(path: string): number;
hsb(h: number, s: number, b: number): string;
hsb2rgb(h: number, s: number, v: number): { r: number; g: number; b: number; hex: string; };
hsl(h: number, s: number, l: number): string;
hsl2rgb(h: number, s: number, l: number): { r: number; g: number; b: number; hex: string; };
is(o: any, type: string): bool;
isBBoxIntersect(bbox1: string, bbox2: string): bool;
isPointInsideBBox(bbox: string, x: number, y: number): bool;
isPointInsidePath(path: string, x: number, y: number): bool;
is(o: any, type: string): boolean;
isBBoxIntersect(bbox1: string, bbox2: string): boolean;
isPointInsideBBox(bbox: string, x: number, y: number): boolean;
isPointInsidePath(path: string, x: number, y: number): boolean;
matrix(a: number, b: number, c: number, d: number, e: number, f: number): RaphaelMatrix;
ninja();
parsePathString(pathString: string): string[];
@@ -281,13 +281,13 @@ interface RaphaelStatic {
snapTo(values: number, value: number, tolerance?: number): number;
snapTo(values: number[], value: number, tolerance?: number): number;
st: any;
svg: bool;
svg: boolean;
toMatrix(path: string, transform: string): RaphaelMatrix;
toMatrix(path: string, transform: string[]): RaphaelMatrix;
transformPath(path: string, transform: string): string;
transformPath(path: string, transform: string[]): string;
type: string;
vml: bool;
vml: boolean;
}
declare var Raphael: RaphaelStatic;

View File

@@ -63,7 +63,7 @@ interface RestangularProvider {
setMethodOverriders(newValue: any): void;
setResponseExtractor(newValue: any): void;
setRequestInterceptor(newValue: any): void;
setListTypeIsArray(newValue: bool): void;
setListTypeIsArray(newValue: boolean): void;
setRestangularFields(newValue: any): void;
setRequestSuffix(newValue: any): void;
addElementTransformer(type, secondArg, thirdArg): void;

12
restify/restify.d.ts vendored
View File

@@ -11,8 +11,8 @@ interface addressInterface {
interface Request {
header: (key: string, defaultValue?: string) => any;
accepts: (type: string) => bool;
is: (type: string) => bool;
accepts: (type: string) => boolean;
is: (type: string) => boolean;
getLogger: (component: string) => any;
contentLength: number;
contentType: string;
@@ -21,7 +21,7 @@ interface Request {
id: string;
path: () => string;
query: string;
secure: bool;
secure: boolean;
time: number;
params: any;
}
@@ -107,9 +107,9 @@ interface HttpClient extends Client {
interface ThrottleOptions {
burst?: number;
rate?: number;
ip?: bool;
xff?: bool;
username?: bool;
ip?: boolean;
xff?: boolean;
username?: boolean;
tokensTable?: Object;
maxKeys?: number;
overrides?: Object;

2
routie/routie.d.ts vendored
View File

@@ -8,7 +8,7 @@ interface Route {
addHandler(fn: Function): void;
removeHandler(fn: Function): void;
run(params: any): void;
match(path: string, params: any): bool;
match(path: string, params: any): boolean;
toURL(params: any): string;
}

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

@@ -24,14 +24,14 @@ declare module Rx {
items: IIndexedItem[];
length: number;
isHigherPriority(left: number, right: number): bool;
isHigherPriority(left: number, right: number): boolean;
percolate(index: number): void;
heapify(index: number): void;
peek(): IIndexedItem;
removeAt(index: number): void;
dequeue(): IIndexedItem;
enqueue(item: IIndexedItem): void;
remove(item: IIndexedItem): bool;
remove(item: IIndexedItem): boolean;
}
interface _IDisposable {
@@ -42,20 +42,20 @@ declare module Rx {
constructor (...disposables: _IDisposable[]);
disposables: _IDisposable[];
isDisposed: bool;
isDisposed: boolean;
length: number;
dispose(): void;
add(item: _IDisposable): void;
remove(item: _IDisposable): bool;
remove(item: _IDisposable): boolean;
clear(): void;
contains(item: _IDisposable): bool;
contains(item: _IDisposable): boolean;
toArray(): _IDisposable[];
}
// Main disposable class
interface IDisposable {
isDisposed: bool;
isDisposed: boolean;
action: () =>void;
dispose(): void;
@@ -69,7 +69,7 @@ declare module Rx {
// Single assignment
interface ISingleAssignmentDisposable {
isDisposed: bool;
isDisposed: boolean;
current: _IDisposable;
dispose(): void;
@@ -83,7 +83,7 @@ declare module Rx {
// Multiple assignment disposable
export class SerialDisposable {
isDisposed: bool;
isDisposed: boolean;
current: _IDisposable;
dispose(): void;
@@ -96,8 +96,8 @@ declare module Rx {
constructor(disposable: _IDisposable);
underlyingDisposable: _IDisposable;
isDisposed: bool;
isPrimaryDisposed: bool;
isDisposed: boolean;
isPrimaryDisposed: boolean;
count: number;
dispose(): void;
@@ -114,7 +114,7 @@ declare module Rx {
invoke(): void;
compareTo(other: IScheduledItem): number;
isCancelled(): bool;
isCancelled(): boolean;
invokeCore(): _IDisposable;
}
@@ -128,7 +128,7 @@ declare module Rx {
scheduleWithAbsoluteAndState(state: any, dueTime: number, action: (scheduler: IScheduler, state: any) =>_IDisposable): _IDisposable;
scheduleWithRelativeAndState(state: any, dueTime: number, action: (scheduler: IScheduler, state: any) =>_IDisposable): _IDisposable;
catchException(handler: (exception: any) =>bool): ICatchScheduler;
catchException(handler: (exception: any) =>boolean): ICatchScheduler;
schedulePeriodic(period: number, action: () =>void ): _IDisposable;
schedulePeriodicWithState(state: any, period: number, action: (state: any) =>any): _IDisposable;//returns {Disposable|SingleAssignmentDisposable}
schedule(action: () =>void ): _IDisposable;
@@ -158,7 +158,7 @@ declare module Rx {
// Current Thread IScheduler
interface ICurrentScheduler extends IScheduler {
scheduleRequired(): bool;
scheduleRequired(): boolean;
ensureTrampoline(action: () =>_IDisposable): _IDisposable;
}
@@ -169,7 +169,7 @@ declare module Rx {
clock: number;
comparer: (x: number, y: number) =>number;
isEnabled: bool;
isEnabled: boolean;
queue: IPriorityQueue;
scheduleRelativeWithState(state: any, dueTime: number, action: (scheduler: IScheduler, state: any) =>_IDisposable): _IDisposable;
scheduleRelative(dueTime: number, action: () =>void ): _IDisposable;
@@ -196,8 +196,8 @@ declare module Rx {
accept(observer: IObserver<T>): void;
accept(onNext: (value: T) =>void , onError?: (exception: any) =>void , onCompleted?: () =>void ): void;
toObservable(scheduler?: IScheduler): IObservable;
hasValue: bool;
equals(other: INotification<T>): bool;
hasValue: boolean;
equals(other: INotification<T>): boolean;
kind: string;
value?: T;
exception?: any;
@@ -216,7 +216,7 @@ declare module Rx {
export module Internals {
// Enumerator
interface IEnumerator<T> {
moveNext(): bool;
moveNext(): boolean;
getCurrent(): T;
dispose(): void;
}
@@ -263,13 +263,13 @@ declare module Rx {
export module Internals {
// Abstract Observer
interface IAbstractObserver<T> extends IObserver<T> {
isStopped: bool;
isStopped: boolean;
dispose(): void;
next(value: T): void;
error(exception: any): void;
completed(): void;
fail(): bool;
fail(): boolean;
}
//export module AbstractObserver {
// //abstract
@@ -291,8 +291,8 @@ declare module Rx {
interface IScheduledObserver<T> extends IAbstractObserver<T> {
scheduler: IScheduler;
observer: IObserver<T>;
isAcquired: bool;
hasFaulted: bool;
isAcquired: boolean;
hasFaulted: boolean;
//queue: { (value: any): void; (exception: any): void; (): void; }[];
disposable: SerialDisposable;
@@ -342,7 +342,7 @@ declare module Rx {
asIObservable(): IObservable;
bufferWithCount(count: number, skip?: number): IObservable<T>;
dematerialize<TOrigin>(): IObservable<TOrigin>;
distinctUntilChanged<TValue>(keySelector?: (value: T) => TValue, comparer?: (x: TValue, y: TValue) =>bool): IObservable;
distinctUntilChanged<TValue>(keySelector?: (value: T) => TValue, comparer?: (x: TValue, y: TValue) =>boolean): IObservable;
doAction(observer: IObserver<T>): IObservable<T>;
doAction(onNext: (value: T) => void , onError?: (exception: any) =>void , onCompleted?: () =>void ): IObservable<T>;
finallyAction(action: () =>void): IObservable<T>;
@@ -366,10 +366,10 @@ declare module Rx {
selectMany<T2>(selector: (value: T) =>IObservable<T2>, resultSelector?: (x: any, y: any) =>any): IObservable<T2>;
selectMany<T2>(other: IObservable<T2>): IObservable<T2>;
skip(count: number): IObservable<T>;
skipWhile(predicate: (value: T, index?: number) =>bool): IObservable<T>;
skipWhile(predicate: (value: T, index?: number) =>boolean): IObservable<T>;
take(count: number, scheduler?: IScheduler): IObservable<T>;
takeWhile(predicate: (value: T, index?: number) =>bool): IObservable<T>;
where(predicate: (value: T, index?: number) => bool): IObservable<T>;
takeWhile(predicate: (value: T, index?: number) =>boolean): IObservable<T>;
where(predicate: (value: T, index?: number) => boolean): IObservable<T>;
}
interface Observable {
@@ -419,8 +419,8 @@ declare module Rx {
}
interface ISubject<T> extends IObservable<T>, IObserver<T> {
isDisposed: bool;
isStopped: bool;
isDisposed: boolean;
isStopped: boolean;
//observers: IObserver<T>[];
dispose(): void;
@@ -435,9 +435,9 @@ declare module Rx {
}
interface IAsyncSubject<T> extends IObservable<T>, IObserver<T> {
isDisposed: bool;
isDisposed: boolean;
value: T;
hasValue: bool;
hasValue: boolean;
observers: IObserver<T>[];
exception: any;

24
sammyjs/sammyjs.d.ts vendored
View File

@@ -62,13 +62,13 @@ declare module Sammy {
escapeHTML(s: string): string;
h(s: string): string;
has(key: string): bool;
has(key: string): boolean;
join(...args: any[]): string;
keys(attributes_only?: bool): string[];
keys(attributes_only?: boolean): string[];
log(...args: any[]): void;
toHTML(): string;
toHash(): any;
toString(include_functions?: bool): string;
toString(include_functions?: boolean): string;
}
export interface Application extends Object {
@@ -88,7 +88,7 @@ declare module Sammy {
bind(name: string, data: any, callback: Function): Application;
bindToAllEvents(callback: Function): Application;
clearTemplateCache(): any;
contextMatchesOptions(context: any, match_options: any, positive?: bool): bool;
contextMatchesOptions(context: any, match_options: any, positive?: boolean): boolean;
del(path: string, callback: Function): Application;
del(path: RegExp, callback: Function): Application;
destroy(): Application;
@@ -99,7 +99,7 @@ declare module Sammy {
getLocation(): string;
helper(name: string, method: Function): Application;
helpers(extensions: any): Application;
isRunning(): bool;
isRunning(): boolean;
log(...params: any[]): void;
lookupRoute(verb: string, path: string): any;
mapRoutes(route_array: any[]): Application;
@@ -192,8 +192,8 @@ declare module Sammy {
new (event_context);
appendTo(selector: string): RenderContext;
collect(array: any[], callback: Function, now?: bool): RenderContext;
interpolate(data: any, engine?: any, retain?: bool): RenderContext;
collect(array: any[], callback: Function, now?: boolean): RenderContext;
interpolate(data: any, engine?: any, retain?: boolean): RenderContext;
load(location: string, options?: any, callback?: Function): RenderContext;
loadPartials(partials?: any): RenderContext;
next(content: any): void;
@@ -233,13 +233,13 @@ declare module Sammy {
clear(key: string): any;
clearAll(): void;
each(callback: Function): bool;
exists(key: string): bool;
each(callback: Function): boolean;
exists(key: string): boolean;
fetch(key: string, callback: Function): any;
filter(callback: Function): bool;
first(callback: Function): bool;
filter(callback: Function): boolean;
first(callback: Function): boolean;
get(key: string): any;
isAvailable(): bool;
isAvailable(): boolean;
keys(): string[];
load(key: string, path: string, callback: Function): void;
set(key: string, value: any): any;

Some files were not shown because too many files have changed in this diff Show More