mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Big replacement: bool with boolean
This commit is contained in:
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user