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
+132 -132
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;