Updated files with tighter compilation options and added comment headers.

This commit is contained in:
ws_ericrtodd 2014-12-09 10:42:01 -08:00
parent d0f52e2404
commit b42e18fac5
7 changed files with 97 additions and 52 deletions

View File

@ -1,4 +1,11 @@
declare module Microsoft.Maps.AdvancedShapes {
// Type definitions for Microsoft.Maps.AdvancedShapes 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh921952.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.AdvancedShapes {
export class EntityCollection {
@ -12,7 +19,7 @@
indexOf(entity: Entity): number;
insert(entity: Entity, index: number): void;
pop(): Entity;
push(entity: Entity);
push(entity: Entity): void;
remove(entity: Entity): Entity;
removeAt(index: number): Entity;
setOptions(options: EntityCollectionOptions): void;

View File

@ -1,4 +1,11 @@
declare module Microsoft.Maps.Directions {
// Type definitions for Microsoft.Maps.Directions 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh312813.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.Directions {
export interface BusinessDetails {
@ -71,7 +78,7 @@
getShortAddress(): string;
isExactLocation(): boolean;
isViapoint(): boolean;
setOptions(options: WaypointOptions);
setOptions(options: WaypointOptions): void;
changed: (args: WaypointEventArgs) => void;
geocoded: (args: WaypointEventArgs) => void;
@ -161,44 +168,44 @@
constructor(map: Microsoft.Maps.Map);
resetDirections(): void;
addWaypoint(waypoint: Waypoint, index?: number) : void;
addWaypoint(waypoint: Waypoint, index?: number): void;
calculateDirections(): void;
clearDisplay(): void;
dispose(): void;
getAllWaypoints(): Array<Waypoint>;
getMap(): Map;
getNearbyMajorRoads(location: Location, callback: any, errorCallback: any, userData: any) : void;
getNearbyMajorRoads(location: Location, callback: any, errorCallback: any, userData: any): void;
getRenderOptions(): DirectionsRenderOptions;
getRequestOptions(): DirectionsRequestOptions;
getRouteResult(): Array<Route>;
removeWaypoint(waypoint: Waypoint) : void;
removeWaypoint(index: number) : void;
resetDirections(options: ResetDirectionsOptions) : void;
reverseGeocode(location: Location, callback: any, errorCallback: any, userData: any);
removeWaypoint(waypoint: Waypoint): void;
removeWaypoint(index: number): void;
resetDirections(options: ResetDirectionsOptions): void;
reverseGeocode(location: Location, callback: any, errorCallback: any, userData: any): void;
setMapView(): void;
setRenderOptions(options: DirectionsRenderOptions): void;
setRequestOptions(options: DirectionsRequestOptions):void;
setRequestOptions(options: DirectionsRequestOptions): void;
afterRouteSelectorRender: (args:RouteSelectorRenderEventArgs) => void;
afterStepRender: (args:DirectionsStepRenderEventArgs) => void;
afterSummaryRender: (args:RouteSummaryRenderEventArgs) => void;
afterWaypointRender: (args:WaypointRenderEventArgs) => void;
beforeDisambiguationRender: (args:DisambiguationRenderEventArgs) => void;
beforeRouteSelectorRender: (args:RouteSelectorRenderEventArgs) => void;
beforeStepRender: (args:DirectionsStepRenderEventArgs) => void;
beforeSummaryRender: (args:RouteSummaryRenderEventArgs) => void;
beforeWaypointRender: (args:WaypointRenderEventArgs) => void;
directionsError: (args:DirectionsErrorEventArgs) => void;
directionsUpdated: (args:DirectionsEventArgs) => void;
afterRouteSelectorRender: (args: RouteSelectorRenderEventArgs) => void;
afterStepRender: (args: DirectionsStepRenderEventArgs) => void;
afterSummaryRender: (args: RouteSummaryRenderEventArgs) => void;
afterWaypointRender: (args: WaypointRenderEventArgs) => void;
beforeDisambiguationRender: (args: DisambiguationRenderEventArgs) => void;
beforeRouteSelectorRender: (args: RouteSelectorRenderEventArgs) => void;
beforeStepRender: (args: DirectionsStepRenderEventArgs) => void;
beforeSummaryRender: (args: RouteSummaryRenderEventArgs) => void;
beforeWaypointRender: (args: WaypointRenderEventArgs) => void;
directionsError: (args: DirectionsErrorEventArgs) => void;
directionsUpdated: (args: DirectionsEventArgs) => void;
dragDropCompleted: () => void;
itineraryStepClicked: (args:DirectionsStepEventArgs) => void;
mouseEnterRouteSelector: (args:RouteSelectorEventArgs) => void;
mouseEnterStep: (args:DirectionsStepEventArgs) => void;
mouseLeaveRouteSelector: (args:RouteSelectorEventArgs) => void;
mouseLeaveStep: (args:DirectionsStepEventArgs) => void;
routeSelectorClicked: (args:RouteSelectorEventArgs) => void;
waypointAdded: (args:WaypointEventArgs) => void;
waypointRemoved: (args:WaypointEventArgs) => void;
itineraryStepClicked: (args: DirectionsStepEventArgs) => void;
mouseEnterRouteSelector: (args: RouteSelectorEventArgs) => void;
mouseEnterStep: (args: DirectionsStepEventArgs) => void;
mouseLeaveRouteSelector: (args: RouteSelectorEventArgs) => void;
mouseLeaveStep: (args: DirectionsStepEventArgs) => void;
routeSelectorClicked: (args: RouteSelectorEventArgs) => void;
waypointAdded: (args: WaypointEventArgs) => void;
waypointRemoved: (args: WaypointEventArgs) => void;
}
export interface DirectionsStepEventArgs {

View File

@ -1,4 +1,11 @@
 declare module Microsoft.Maps.Search {
// Type definitions for Microsoft.Maps.Search 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.Search {
export interface Address {
addressLine: string;

View File

@ -1,4 +1,9 @@
declare module Microsoft.Maps.Themes {
// Type definitions for Microsoft.Maps.Themes 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module Microsoft.Maps.Themes {
export class BingTheme {
constructor();

View File

@ -1,4 +1,11 @@
declare module Microsoft.Maps.Traffic {
// Type definitions for Microsoft.Maps.Traffic 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh312840.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.Traffic {
export class TrafficManager {

View File

@ -1,4 +1,11 @@
declare module Microsoft.Maps.VenueMaps {
// Type definitions for Microsoft.Maps.VenueMaps 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh312797.aspx
// Definitions by: [AUTHOR NAME] <[AUTHOR URL]>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.VenueMaps {
export interface MouseResponse {
eventArgs: MouseEventArgs;
@ -13,7 +20,7 @@
handleMouseOver(response: MouseResponse): void;
isInDOM(): boolean;
removeFromDOM(): void;
setHeight(height: number);
setHeight(height: number): void;
click: (eventArgs: MouseEventArgs) => any;
mouseOut: (eventArgs: MouseEventArgs) => any;
@ -120,15 +127,15 @@
export interface VenueMapCreationOptions {
error: (errorCode: number, args: any) => any;
success: (venueMap: VenueMap, args: any) => any;
venueMapId:string;
venueMapId: string;
}
export class VenueMapFactory {
constructor(map: Map);
create(options: VenueMapCreationOptions): void;
getNearbyVenues(options:NearbyVenueOptions):void;
getNearbyVenues(options: NearbyVenueOptions): void;
}
}

View File

@ -1,4 +1,9 @@
declare module Microsoft.Maps {
// Type definitions for Microsoft.Maps 7.0
// Project: http://msdn.microsoft.com/en-us/library/gg427611.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module Microsoft.Maps {
export enum AltitudeReference {
ground,
@ -14,8 +19,8 @@
latitude: number;
longitude: number;
static areEqual(location1: Location, location2: Location);
static normalizeLongitude(longitude: number);
static areEqual(location1: Location, location2: Location): boolean;
static normalizeLongitude(longitude: number): number;
clone(): Location;
toString(): string;
@ -32,7 +37,7 @@
static fromCorners(northwest: Location, southeast: Location): LocationRect;
static fromEdges(north: number, west: number, south: number, east: number, altitude: number, altitudeReference: AltitudeReference): LocationRect;
static fromLocations(locations: Array<Location>): LocationRect;
static fromString(value: string);
static fromString(value: string): LocationRect;
clone(): LocationRect;
contains(location: Location): boolean;
@ -65,8 +70,8 @@
static addHandler(target: any, eventName: string, handler: () => void): any;
static addThrottledHandler(target: any, eventName: string, handler: () => void, throttleInterval: number): any;
static hasHandler(target: any, eventName: string): boolean;
static invoke(target: any, eventName: string, args: any);
static removeHandler(handlerId: any);
static invoke(target: any, eventName: string, args: any): void;
static removeHandler(handlerId: any): void;
}
export interface KeyEventArgs {
@ -129,11 +134,11 @@
isDownloadingTiles(): boolean;
isMercator(): boolean;
isRotationEnabled(): boolean;
setMapType(mapTypeId: MapTypeId);
setOptions(options: MapOptions);
setView(options: ViewOptions);
tryLocationToPixel(locations: Array<Location>, reference?: PixelReference);
tryPixelToLocation(points: Array<Point>, reference?: PixelReference);
setMapType(mapTypeId: MapTypeId): void;
setOptions(options: MapOptions): void;
setView(options: ViewOptions): void;
tryLocationToPixel(locations: Array<Location>, reference?: PixelReference): any;
tryPixelToLocation(points: Array<Point>, reference?: PixelReference): any;
click: (eventArgs: MouseEventArgs) => void;
copyrightchanged: () => void;
@ -284,7 +289,7 @@
indexOf(entity: Entity): number;
insert(entity: Entity, index: number): void;
pop(): Entity;
push(entity: Entity);
push(entity: Entity): void;
remove(entity: Entity): Entity;
removeAt(index: number): Entity;
setOptions(options: EntityCollectionOptions): void;
@ -330,7 +335,7 @@
export interface Action {
label?: string;
icon?: string;
eventHandler: (args?:any) => void;
eventHandler: (args?: any) => void;
}
export interface InfoboxOptions {
@ -564,5 +569,5 @@
export function loadModule(moduleKey: string, options: ModuleOptions): void;
export function moduleLoaded(moduleKey: string): void;
export function registerModule(moduleKey: string, scriptUrl: string, options?: ModuleOptions);
export function registerModule(moduleKey: string, scriptUrl: string, options?: ModuleOptions): void;
}